Skip to content

Commit 8967f0d

Browse files
eytanhanigantonbabenko
authored andcommittedJan 23, 2020
Set minimum terraform version to 0.12.6 (fixes circleci) (terraform-aws-modules#390)
1 parent c7a9cfc commit 8967f0d

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed
 

‎.circleci/config.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@ version: 2
22

33
terraform: &terraform
44
docker:
5-
- image: hashicorp/terraform:0.12.0
5+
- image: hashicorp/terraform:0.12.6
66
working_directory: /tmp/workspace/terraform
77

88
jobs:
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

‎.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
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

‎README.md

+1-1
Original file line numberDiff line numberDiff 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

‎versions.tf

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
terraform {
2+
required_version = "~> 0.12.6"
3+
4+
required_providers {
5+
aws = "~> 2.23"
6+
}
7+
}

0 commit comments

Comments
 (0)