@@ -23,31 +23,37 @@ Big shout out to the following projects which this project uses/depends on/menti
23
23
24
24
``` hcl
25
25
module "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"
27
28
stage = var.stage
28
29
namespace = var.namespace
29
30
vpc_id = module.vpc.vpc_id
30
31
subnet_ids = module.subnets.private_subnet_ids
31
32
}
32
33
33
34
module "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
39
44
}
40
45
41
46
module "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
51
57
}
52
58
```
53
59
0 commit comments