@@ -23,31 +23,37 @@ Big shout out to the following projects which this project uses/depends on/menti
2323
2424``` hcl
2525module "ssm_agent" {
26- source = "git::https://github.com/masterpointio/terraform-aws-ssm-agent.git?ref=tags/0.1.0"
26+ source = "masterpointio/ssm-agent/aws"
27+ version = "0.15.1"
2728 stage = var.stage
2829 namespace = var.namespace
2930 vpc_id = module.vpc.vpc_id
3031 subnet_ids = module.subnets.private_subnet_ids
3132}
3233
3334module "vpc" {
34- source = "git::https://github.com/cloudposse/terraform-aws-vpc.git?ref=tags/0.10.0"
35- namespace = var.namespace
36- stage = var.stage
37- name = var.name
38- cidr_block = "10.0.0.0/16"
35+ source = "cloudposse/vpc/aws"
36+ version = "2.1.0"
37+
38+ namespace = var.namespace
39+ stage = var.stage
40+ name = var.name
41+
42+ ipv4_primary_cidr_block = "10.0.0.0/16"
43+ assign_generated_ipv6_cidr_block = true
3944}
4045
4146module "subnets" {
42- source = "git::https://github.com/cloudposse/terraform-aws-dynamic-subnets.git?ref=tags/0.19.0"
43- availability_zones = var.availability_zones
44- namespace = var.namespace
45- stage = var.stage
46- vpc_id = module.vpc.vpc_id
47- igw_id = module.vpc.igw_id
48- cidr_block = module.vpc.vpc_cidr_block
49- nat_gateway_enabled = var.nat_gateway_enabled
50- nat_instance_enabled = ! var.nat_gateway_enabled
47+ source = "cloudposse/dynamic-subnets/aws"
48+ version = "2.3.0"
49+ namespace = var.namespace
50+ stage = var.stage
51+
52+ availability_zones = var.availability_zones
53+ vpc_id = module.vpc.vpc_id
54+ igw_id = [module.vpc.igw_id]
55+ ipv4_cidr_block = [module.vpc.vpc_cidr_block]
56+ ipv6_enabled = var.ipv6_enabled
5157}
5258```
5359
0 commit comments