Skip to content

Commit

Permalink
Merge pull request #17 from clouddrove/cd-293
Browse files Browse the repository at this point in the history
update terraform letest version
  • Loading branch information
yadavprakash committed Jan 10, 2023
2 parents 5bde20d + dc633c8 commit cf392c6
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 14 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
fail-fast: false
matrix:
version:
- 0.14.11
- ${{ needs.versionExtract.outputs.minVersion }}
- ${{ needs.versionExtract.outputs.maxVersion }}
directory:
- _example/
- _example

steps:
- name: Checkout
Expand All @@ -55,6 +55,15 @@ jobs:
terraform init
terraform validate
terraform plan -input=false -no-color
- 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'
filter_mode: 'nofilter'
flags: '--module'

format:
name: Check code format
Expand All @@ -71,4 +80,4 @@ jobs:
terraform_version: ${{ needs.versionExtract.outputs.maxVersion }}

- name: Check Terraform format changes
run: terraform fmt --recursive
run: terraform fmt --recursive
2 changes: 1 addition & 1 deletion README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ usage : |-
```hcl
module "efs" {
source = "clouddrove/efs/aws"
version = "1.0.1"
version = "1.3.0"
name = "efs"
creation_token = var.token
region = var.region
Expand Down
4 changes: 2 additions & 2 deletions _example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ provider "aws" {

module "vpc" {
source = "clouddrove/vpc/aws"
version = "0.15.1"
version = "1.3.0"

name = "vpc"
environment = "test"
Expand All @@ -14,7 +14,7 @@ module "vpc" {

module "subnets" {
source = "clouddrove/subnet/aws"
version = "0.15.3"
version = "1.3.0"

name = "subnet"
availability_zones = ["us-east-1a", "us-east-1b"]
Expand Down
12 changes: 8 additions & 4 deletions _example/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
output "vpc_id" {
value = module.vpc.vpc_id
value = module.vpc.vpc_id
description = "The VPC ID."
}

output "public_subnet_cidrs" {
value = module.subnets.public_subnet_cidrs
value = module.subnets.public_subnet_cidrs
description = "The CIDR of the subnet."
}

output "private_subnet_cidrs" {
value = module.subnets.private_subnet_cidrs
value = module.subnets.private_subnet_cidrs
description = "The CIDR of the subnet."
}

output "vpc_cidr" {
value = module.vpc.vpc_cidr_block
value = module.vpc.vpc_cidr_block
description = "The CIDR of the vpc."
}

output "efs_arn" {
Expand Down
7 changes: 4 additions & 3 deletions _example/versions.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Terraform version
terraform {
required_version = ">= 0.14.11"
required_version = ">= 1.3.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.1.15"
version = ">= 4.48.0"
}
}
}
}
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

module "label" {
source = "clouddrove/labels/aws"
version = "0.15.0"
version = "1.3.0"

name = var.name
repository = var.repository
Expand Down

0 comments on commit cf392c6

Please sign in to comment.