diff --git a/examples/ecs-apps-monorepo/.ize/env/testnut/main.tf b/examples/ecs-apps-monorepo/.ize/env/testnut/main.tf index 6fd5db97..d3ed8295 100644 --- a/examples/ecs-apps-monorepo/.ize/env/testnut/main.tf +++ b/examples/ecs-apps-monorepo/.ize/env/testnut/main.tf @@ -10,7 +10,7 @@ resource "aws_key_pair" "root" { } module "vpc" { - source = "terraform-aws-modules/vpc/aws" + source = "registry.terraform.io/terraform-aws-modules/vpc/aws" version = "~> 3.0" name = "${var.env}-vpc" @@ -31,13 +31,8 @@ module "vpc" { "10.0.4.0/24" ] - enable_nat_gateway = true + enable_nat_gateway = true single_nat_gateway = true - enable_s3_endpoint = true - enable_ecr_api_endpoint = true - ecr_api_endpoint_security_group_ids = [aws_security_group.default_permissive.id] - enable_ecr_dkr_endpoint = true - ecr_dkr_endpoint_security_group_ids = [aws_security_group.default_permissive.id] enable_dns_hostnames = true manage_default_network_acl = true default_network_acl_name = "${var.env}-${var.namespace}" @@ -92,14 +87,14 @@ resource "aws_security_group" "default_permissive" { } module "ecs" { - source = "terraform-aws-modules/ecs/aws" + source = "registry.terraform.io/terraform-aws-modules/ecs/aws" version = "~> 3.0" name = "${var.env}-${var.namespace}" } module "ec2_profile" { - source = "terraform-aws-modules/ecs/aws//modules/ecs-instance-profile" + source = "registry.terraform.io/terraform-aws-modules/ecs/aws//modules/ecs-instance-profile" version = "~> 3.0" name = "${var.env}-${var.namespace}" include_ssm = true diff --git a/examples/ecs-apps-monorepo/.ize/env/testnut/variables.tf b/examples/ecs-apps-monorepo/.ize/env/testnut/variables.tf index 51ab2862..5da38192 100644 --- a/examples/ecs-apps-monorepo/.ize/env/testnut/variables.tf +++ b/examples/ecs-apps-monorepo/.ize/env/testnut/variables.tf @@ -14,7 +14,7 @@ locals { public_subnets = module.vpc.public_subnets private_subnets = module.vpc.private_subnets key_name = aws_key_pair.root.key_name - iam_instance_profile = module.ec2_profile.this_iam_instance_profile_id + iam_instance_profile = module.ec2_profile.iam_instance_profile_id root_domain_name = var.root_domain_name zone_id = aws_route53_zone.env_domain.id vpc_id = module.vpc.vpc_id @@ -22,5 +22,5 @@ locals { alb_security_groups = [aws_security_group.default_permissive.id] docker_registry = var.docker_registry docker_image_tag = var.docker_image_tag - ecs_cluster_name = module.ecs.this_ecs_cluster_name + ecs_cluster_name = module.ecs.ecs_cluster_name }