diff --git a/iac/core/vpc_endpoint/main.tf b/iac/core/vpc_endpoint/main.tf index f395b379..9c0e8212 100644 --- a/iac/core/vpc_endpoint/main.tf +++ b/iac/core/vpc_endpoint/main.tf @@ -7,7 +7,7 @@ resource "aws_vpc_endpoint" "this" { vpc_endpoint_type = "Interface" private_dns_enabled = true service_name = format("com.amazonaws.%s.%s", data.aws_region.this.name, element(local.interfaces, count.index)) - subnet_ids = merge( + subnet_ids = concat( data.terraform_remote_state.subnet.outputs.igw_subnet_ids, data.terraform_remote_state.subnet.outputs.nat_subnet_ids )