File tree 4 files changed +13
-9
lines changed
4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,14 @@ version: 2
2
2
3
3
terraform : &terraform
4
4
docker :
5
- - image : hashicorp/terraform:0.12.0
5
+ - image : hashicorp/terraform:0.12.6
6
6
working_directory : /tmp/workspace/terraform
7
7
8
8
jobs :
9
9
validate :
10
10
<< : *terraform
11
- environment :
12
- AWS_DEFAULT_REGION : us-east-1
13
11
steps :
14
12
- checkout
15
- - run :
16
- name : Install curl
17
- command : apk add --update curl
18
13
# - run:
19
14
# name: Add github.com to ~/.ssh/known_hosts
20
15
# command: mkdir ~/.ssh && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
@@ -24,12 +19,14 @@ jobs:
24
19
- run :
25
20
name : Validate Terraform configurations
26
21
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
27
24
- run :
28
25
name : Check if Terraform configurations are properly formatted
29
26
command : if [[ -n "$(terraform fmt -write=false)" ]]; then echo "Some terraform files need be formatted, run 'terraform fmt' to fix"; exit 1; fi
30
27
- run :
31
28
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
33
30
- run :
34
31
name : Check Terraform configurations with tflint
35
32
command : tflint
Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : git://github.com/antonbabenko/pre-commit-terraform
3
- rev : v1.23 .0
3
+ rev : v1.24 .0
4
4
hooks :
5
5
- id : terraform_fmt
6
6
- 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
214
214
215
215
| Name | Version |
216
216
| ------| ---------|
217
- | aws | n/a |
217
+ | aws | ~ > 2.23 |
218
218
219
219
## Inputs
220
220
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