diff --git a/.github/workflows/release-branch.yml b/.github/workflows/release-branch.yml index 3f8fe62..b30901e 100644 --- a/.github/workflows/release-branch.yml +++ b/.github/workflows/release-branch.yml @@ -10,6 +10,7 @@ on: - 'docs/**' - 'examples/**' - 'test/**' + - 'README.*' permissions: contents: write diff --git a/.github/workflows/release-published.yml b/.github/workflows/release-published.yml index f86352b..b31232b 100644 --- a/.github/workflows/release-published.yml +++ b/.github/workflows/release-published.yml @@ -11,4 +11,4 @@ permissions: jobs: terraform-module: - uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release.yml@main + uses: cloudposse/github-actions-workflows-terraform-module/.github/workflows/release-published.yml@main diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 04ed295..8e97aeb 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -3,26 +3,22 @@ provider "aws" { } module "vpc" { - source = "cloudposse/vpc/aws" - version = "1.1.0" - - cidr_block = "172.16.0.0/16" - - context = module.this.context + source = "cloudposse/vpc/aws" + version = "2.1.0" + ipv4_primary_cidr_block = var.vpc_cidr_block + context = module.this.context } module "subnets" { - source = "cloudposse/dynamic-subnets/aws" - version = "1.0.0" - + source = "cloudposse/dynamic-subnets/aws" + version = "2.3.0" availability_zones = var.availability_zones vpc_id = module.vpc.vpc_id - igw_id = module.vpc.igw_id - cidr_block = module.vpc.vpc_cidr_block + igw_id = [module.vpc.igw_id] + ipv4_cidr_block = [module.vpc.vpc_cidr_block] nat_gateway_enabled = false nat_instance_enabled = false - - context = module.this.context + context = module.this.context } module "mq_broker" { diff --git a/outputs.tf b/outputs.tf index 29206ff..c67548b 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,10 +1,10 @@ output "broker_id" { - value = join("", aws_mq_broker.default.*.id) + value = join("", aws_mq_broker.default[*].id) description = "AmazonMQ broker ID" } output "broker_arn" { - value = join("", aws_mq_broker.default.*.arn) + value = join("", aws_mq_broker.default[*].arn) description = "AmazonMQ broker ARN" }