Terraform output from 2 strings to list

In terraform I have 2 data outputs: data “aws_instances” “daas_resolver_ip_1” { instance_tags = { Name = “${var.env_type}.${var.environment}.ns1.${var.aws_region}.a.” } } data “aws_instances” “daas_resolver_ip_2” { instance_tags = { Name = “${var.env_type}.${var.environment}.ns2.${var.aws_region}.b.” } } I want to get the private_ip from each of those combine those into a list and be used as follows: dhcp_options_domain_name_servers = [“${data.aws_instances.daas_resolver_ip_1.private_ip}”, “${data.aws_instances.daas_resolver_ip_1.private_ip}”]…

Details