diff --git a/patterns/vpc-lattice/main.tf b/patterns/vpc-lattice/main.tf index e042877055..1fb532e36f 100644 --- a/patterns/vpc-lattice/main.tf +++ b/patterns/vpc-lattice/main.tf @@ -159,18 +159,18 @@ module "addons" { value = module.cluster_vpc.vpc_id }, { - name = "defaultServiceNetwork" + name = "defaultServiceNetwork" value = "" }, { - name = "latticeEndpoint" + name = "latticeEndpoint" value = "https://vpc-lattice.${local.region}.amazonaws.com" } ] wait = true } - enable_external_dns = true - external_dns_route53_zone_arns = try([aws_route53_zone.primary.arn], []) + enable_external_dns = true + external_dns_route53_zone_arns = try([aws_route53_zone.primary.arn], []) external_dns = { set = [ { @@ -293,14 +293,6 @@ resource "time_sleep" "wait_for_lattice_resources" { create_duration = "120s" } -data "aws_vpclattice_service" "server" { - name = "server-apps" - - tags = local.tags - - depends_on = [time_sleep.wait_for_lattice_resources] -} - ################################################################################ # Custom domain name for VPC lattice service # Records will be created by external-dns using DNSEndpoint objects which