File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,14 @@ version: 2
22
33terraform : &terraform
44 docker :
5- - image : hashicorp/terraform:0.12.0
5+ - image : hashicorp/terraform:0.12.6
66 working_directory : /tmp/workspace/terraform
77
88jobs :
99 validate :
1010 << : *terraform
11- environment :
12- AWS_DEFAULT_REGION : us-east-1
1311 steps :
1412 - checkout
15- - run :
16- name : Install curl
17- command : apk add --update curl
1813# - run:
1914# name: Add github.com to ~/.ssh/known_hosts
2015# command: mkdir ~/.ssh && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
@@ -24,12 +19,14 @@ jobs:
2419 - run :
2520 name : Validate Terraform configurations
2621 command : find . -name ".terraform" -prune -o -type f -name "*.tf" -exec dirname {} \;|sort -u | while read m; do (cd "$m" && terraform validate && echo "√ $m") || exit 1 ; done
22+ environment :
23+ AWS_DEFAULT_REGION : us-east-1
2724 - run :
2825 name : Check if Terraform configurations are properly formatted
2926 command : if [[ -n "$(terraform fmt -write=false)" ]]; then echo "Some terraform files need be formatted, run 'terraform fmt' to fix"; exit 1; fi
3027 - run :
3128 name : Install tflint
32- command : curl -L -o /tmp/tflint.zip https://github.com/wata727/tflint/releases/download/v0.12.1/tflint_linux_amd64.zip && unzip /tmp/tflint.zip -d /usr/local/bin
29+ command : wget -O /tmp/tflint.zip https://github.com/wata727/tflint/releases/download/v0.12.1/tflint_linux_amd64.zip && unzip /tmp/tflint.zip -d /usr/local/bin
3330 - run :
3431 name : Check Terraform configurations with tflint
3532 command : tflint
Original file line number Diff line number Diff line change 11repos :
22- repo : git://github.com/antonbabenko/pre-commit-terraform
3- rev : v1.23 .0
3+ rev : v1.24 .0
44 hooks :
55 - id : terraform_fmt
66 - id : terraform_docs
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
214214
215215| Name | Version |
216216| ------| ---------|
217- | aws | n/a |
217+ | aws | ~ > 2.23 |
218218
219219## Inputs
220220
Original file line number Diff line number Diff line change 1+ terraform {
2+ required_version = " ~> 0.12.6"
3+
4+ required_providers {
5+ aws = " ~> 2.23"
6+ }
7+ }
You can’t perform that action at this time.
0 commit comments