Skip to content

Commit dfc6f94

Browse files
committed
chore: update README and examples to use Terraform registry
1 parent 47fdc93 commit dfc6f94

File tree

2 files changed

+40
-29
lines changed

2 files changed

+40
-29
lines changed

README.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,37 @@ Big shout out to the following projects which this project uses/depends on/menti
2323

2424
```hcl
2525
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"
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
3334
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
3944
}
4045
4146
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
5157
}
5258
```
5359

examples/complete/main.tf

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,28 @@ provider "aws" {
33
}
44

55
module "vpc" {
6-
source = "git::https://github.com/cloudposse/terraform-aws-vpc.git?ref=tags/0.26.1"
7-
namespace = var.namespace
8-
stage = var.stage
9-
name = var.name
10-
cidr_block = "10.0.0.0/16"
6+
source = "cloudposse/vpc/aws"
7+
version = "2.1.0"
8+
9+
namespace = var.namespace
10+
stage = var.stage
11+
name = var.name
12+
13+
ipv4_primary_cidr_block = "10.0.0.0/16"
14+
assign_generated_ipv6_cidr_block = true
1115
}
1216

1317
module "subnets" {
14-
source = "git::https://github.com/cloudposse/terraform-aws-dynamic-subnets.git?ref=tags/0.39.3"
15-
availability_zones = var.availability_zones
16-
namespace = var.namespace
17-
stage = var.stage
18-
vpc_id = module.vpc.vpc_id
19-
igw_id = module.vpc.igw_id
20-
cidr_block = module.vpc.vpc_cidr_block
21-
nat_gateway_enabled = var.nat_gateway_enabled
22-
nat_instance_enabled = !var.nat_gateway_enabled
18+
source = "cloudposse/dynamic-subnets/aws"
19+
version = "2.3.0"
20+
namespace = var.namespace
21+
stage = var.stage
22+
23+
availability_zones = var.availability_zones
24+
vpc_id = module.vpc.vpc_id
25+
igw_id = [module.vpc.igw_id]
26+
ipv4_cidr_block = [module.vpc.vpc_cidr_block]
27+
ipv6_enabled = var.ipv6_enabled
2328
}
2429

2530
module "ssm_agent" {

0 commit comments

Comments
 (0)