From 39e9e555da70b9b02d0127788fc386200854c386 Mon Sep 17 00:00:00 2001 From: Max Lobur Date: Thu, 15 Jun 2023 21:55:14 +0300 Subject: [PATCH] Support AWS Provider V5 (#63) * Support AWS Provider V5 * Support AWS Provider V5 --- .github/workflows/release-branch.yml | 1 + .github/workflows/release-published.yml | 2 +- README.md | 2 +- docs/terraform.md | 2 +- examples/complete/main.tf | 10 +++++----- examples/complete/versions.tf | 2 +- versions.tf | 2 +- 7 files changed, 11 insertions(+), 10 deletions(-) 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/README.md b/README.md index 118c0bb..d9d2e6e 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ Available targets: | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.14.0 | +| [terraform](#requirement\_terraform) | >= 1.3 | | [aws](#requirement\_aws) | >= 2.0 | | [local](#requirement\_local) | >= 1.3 | | [random](#requirement\_random) | >= 1.0 | diff --git a/docs/terraform.md b/docs/terraform.md index 0a17242..58f899e 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -3,7 +3,7 @@ | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.14.0 | +| [terraform](#requirement\_terraform) | >= 1.3 | | [aws](#requirement\_aws) | >= 2.0 | | [local](#requirement\_local) | >= 1.3 | | [random](#requirement\_random) | >= 1.0 | diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 8c19233..e36aed0 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -16,21 +16,21 @@ provider "aws" { module "vpc" { source = "cloudposse/vpc/aws" - version = "0.27.0" + version = "2.1.0" - cidr_block = var.vpc_cidr_block + ipv4_primary_cidr_block = var.vpc_cidr_block context = module.this.context } module "subnets" { source = "cloudposse/dynamic-subnets/aws" - version = "0.39.6" + 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 diff --git a/examples/complete/versions.tf b/examples/complete/versions.tf index f0b52f5..e5b2bea 100644 --- a/examples/complete/versions.tf +++ b/examples/complete/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.14.0" + required_version = ">= 1.3" required_providers { aws = { diff --git a/versions.tf b/versions.tf index 6d674d0..5082d7f 100644 --- a/versions.tf +++ b/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.14.0" + required_version = ">= 1.3" required_providers { aws = {