From e918491dd7adfa4a5a31b41722db8dafbcf71225 Mon Sep 17 00:00:00 2001 From: theprashantyadav Date: Thu, 29 Dec 2022 15:50:37 +0530 Subject: [PATCH] update terraform letest version and fix github-action --- .github/workflows/terraform.yml | 1 + README.yaml | 10 +++++----- _example/private-subnet/example.tf | 4 ++-- _example/private-subnet/versions.tf | 6 +++--- .../example.tf | 2 +- .../versions.tf | 6 +++--- _example/public-private-subnet/example.tf | 2 +- _example/public-private-subnet/outputs.tf | 5 +++++ _example/public-private-subnet/versions.tf | 6 +++--- _example/public-subnet/example.tf | 2 +- _example/public-subnet/versions.tf | 6 +++--- 11 files changed, 28 insertions(+), 22 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index f112008..48e7383 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -62,6 +62,7 @@ jobs: - name: tflint uses: reviewdog/action-tflint@master with: + tflint_version: v0.29.0 github_token: ${{ secrets.GITHUB }} working_directory: ${{ matrix.directory }} fail_on_error: 'true' diff --git a/README.yaml b/README.yaml index 69e1bd5..e4238f3 100644 --- a/README.yaml +++ b/README.yaml @@ -43,7 +43,7 @@ usage: |- ```hcl module "subnets" { source = "clouddrove/terraform-aws-subnet/aws" - version = "0.15.3" + version = "1.3.0" name = "subnets" environment = "test" label_order = ["name", "environment"] @@ -61,7 +61,7 @@ usage: |- ```hcl module "subnets" { source = "clouddrove/terraform-aws-subnet/aws" - version = "0.15.3" + version = "1.3.0" name = "subnets" environment = "test" label_order = ["name", "environment"] @@ -79,7 +79,7 @@ usage: |- ```hcl module "subnets" { source = "clouddrove/terraform-aws-subnet/aws" - version = "0.15.3" + version = "1.3.0" name = "subnets" environment = "test" label_order = ["name", "environment"] @@ -98,7 +98,7 @@ usage: |- ```hcl module "subnets" { source = "clouddrove/terraform-aws-subnet/aws" - version = "0.15.3" + version = "1.3.0" name = "subnets" environment = "test" label_order = ["name", "environment"] @@ -114,7 +114,7 @@ usage: |- ```hcl module "subnets" { source = "clouddrove/terraform-aws-subnet/aws" - version = "0.15.3" + version = "1.3.0" nat_gateway_enabled = true single_nat_gateway = true name = "subnets" diff --git a/_example/private-subnet/example.tf b/_example/private-subnet/example.tf index 7e50372..a985844 100644 --- a/_example/private-subnet/example.tf +++ b/_example/private-subnet/example.tf @@ -4,7 +4,7 @@ provider "aws" { module "vpc" { source = "clouddrove/vpc/aws" - version = "0.15.1" + version = "1.3.0" name = "vpc" environment = "test" @@ -27,6 +27,6 @@ module "private-subnets" { type = "private" cidr_block = module.vpc.vpc_cidr_block ipv6_cidr_block = module.vpc.ipv6_cidr_block - public_subnet_ids = ["subnet-XXXXXXXXXXXXX", "subnet-XXXXXXXXXXXXX"] + public_subnet_ids = ["subnet-0d1c389a7398ec769", "subnet-0b1d4daaab87494ee"] assign_ipv6_address_on_creation = false } diff --git a/_example/private-subnet/versions.tf b/_example/private-subnet/versions.tf index 2683fac..cbc6f9c 100644 --- a/_example/private-subnet/versions.tf +++ b/_example/private-subnet/versions.tf @@ -1,11 +1,11 @@ # Terraform version terraform { - required_version = ">= 0.14.0" + required_version = ">= 1.3.6" required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.1.15" + version = ">= 4.48.0" } } -} +} \ No newline at end of file diff --git a/_example/public-private-subnet-single-nat-gateway/example.tf b/_example/public-private-subnet-single-nat-gateway/example.tf index f15e968..ec3534c 100644 --- a/_example/public-private-subnet-single-nat-gateway/example.tf +++ b/_example/public-private-subnet-single-nat-gateway/example.tf @@ -4,7 +4,7 @@ provider "aws" { module "vpc" { source = "clouddrove/vpc/aws" - version = "0.15.1" + version = "1.3.0" name = "vpc" environment = "example" diff --git a/_example/public-private-subnet-single-nat-gateway/versions.tf b/_example/public-private-subnet-single-nat-gateway/versions.tf index 2683fac..cbc6f9c 100644 --- a/_example/public-private-subnet-single-nat-gateway/versions.tf +++ b/_example/public-private-subnet-single-nat-gateway/versions.tf @@ -1,11 +1,11 @@ # Terraform version terraform { - required_version = ">= 0.14.0" + required_version = ">= 1.3.6" required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.1.15" + version = ">= 4.48.0" } } -} +} \ No newline at end of file diff --git a/_example/public-private-subnet/example.tf b/_example/public-private-subnet/example.tf index 29e9c53..bbf7d6e 100644 --- a/_example/public-private-subnet/example.tf +++ b/_example/public-private-subnet/example.tf @@ -4,7 +4,7 @@ provider "aws" { module "vpc" { source = "clouddrove/vpc/aws" - version = "0.15.1" + version = "1.3.0" name = "vpc" environment = "test" diff --git a/_example/public-private-subnet/outputs.tf b/_example/public-private-subnet/outputs.tf index ea9f587..806a18a 100644 --- a/_example/public-private-subnet/outputs.tf +++ b/_example/public-private-subnet/outputs.tf @@ -27,3 +27,8 @@ output "public_tags" { value = module.subnets.public_tags description = "A mapping of tags to assign to the resource." } + +output "public_subnet_id" { + value = module.subnets.private_subnet_id + description = "A mapping of tags to assign to the resource." +} \ No newline at end of file diff --git a/_example/public-private-subnet/versions.tf b/_example/public-private-subnet/versions.tf index 2683fac..cbc6f9c 100644 --- a/_example/public-private-subnet/versions.tf +++ b/_example/public-private-subnet/versions.tf @@ -1,11 +1,11 @@ # Terraform version terraform { - required_version = ">= 0.14.0" + required_version = ">= 1.3.6" required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.1.15" + version = ">= 4.48.0" } } -} +} \ No newline at end of file diff --git a/_example/public-subnet/example.tf b/_example/public-subnet/example.tf index 977fa15..99484c8 100644 --- a/_example/public-subnet/example.tf +++ b/_example/public-subnet/example.tf @@ -4,7 +4,7 @@ provider "aws" { module "vpc" { source = "clouddrove/vpc/aws" - version = "0.15.1" + version = "1.3.0" name = "vpc" environment = "test" diff --git a/_example/public-subnet/versions.tf b/_example/public-subnet/versions.tf index 2683fac..cbc6f9c 100644 --- a/_example/public-subnet/versions.tf +++ b/_example/public-subnet/versions.tf @@ -1,11 +1,11 @@ # Terraform version terraform { - required_version = ">= 0.14.0" + required_version = ">= 1.3.6" required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.1.15" + version = ">= 4.48.0" } } -} +} \ No newline at end of file