Skip to content

Commit 1031747

Browse files
author
Eytan Hanig
committed
Set minimum terraform version to 0.12.6 (fixes circleci)
1 parent c7a9cfc commit 1031747

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.circleci/config.yml

Lines changed: 4 additions & 7 deletions
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

README.md

Lines changed: 1 addition & 1 deletion
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.0 |
218218

219219
## Inputs
220220

versions.tf

Lines changed: 7 additions & 0 deletions
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.0"
6+
}
7+
}

0 commit comments

Comments
 (0)