Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #241 from hashicorp/tf14
Browse files Browse the repository at this point in the history
Terraform v0.14 update
  • Loading branch information
robmorgan authored Apr 12, 2021
2 parents 2a67b66 + ef97338 commit 61db1c3
Show file tree
Hide file tree
Showing 17 changed files with 130 additions and 66 deletions.
7 changes: 1 addition & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
defaults: &defaults
docker:
- image: 087285199408.dkr.ecr.us-east-1.amazonaws.com/circle-ci-test-image-base:tf13.4

- image: 087285199408.dkr.ecr.us-east-1.amazonaws.com/circle-ci-test-image-base:go1.16-go111module
version: 2
jobs:
test:
Expand Down Expand Up @@ -31,7 +29,6 @@ jobs:
path: /tmp/logs
- store_test_results:
path: /tmp/logs

deploy:
<<: *defaults
steps:
Expand All @@ -40,14 +37,12 @@ jobs:
- run: sudo -E gruntwork-install --module-name "aws-helpers" --repo "https://github.com/gruntwork-io/module-ci" --tag "v0.28.1"
- run: sudo -E gruntwork-install --module-name "git-helpers" --repo "https://github.com/gruntwork-io/module-ci" --tag "v0.28.1"
- run: sudo -E gruntwork-install --module-name "build-helpers" --repo "https://github.com/gruntwork-io/module-ci" --tag "v0.28.1"

# We generally only want to build AMIs on new releases, but when we are setting up AMIs in a new account for the
# first time, we want to build the AMIs but NOT run automated tests, since those tests will fail without an existing
# AMI already in the AWS Account.
- run: _ci/publish-amis.sh "ubuntu16-ami"
- run: _ci/publish-amis.sh "ubuntu18-ami"
- run: _ci/publish-amis.sh "amazon-linux-2-ami"

workflows:
version: 2
build-and-test:
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ out/
vendor

# Folder used to store temporary test data by Terratest
.test-data
.test-data
# Ignore Terraform lock files, as we want to test the Terraform code in these repos with the latest provider
# versions.
.terraform.lock.hcl
4 changes: 2 additions & 2 deletions examples/vault-agent/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER
# ----------------------------------------------------------------------------------------------------------------------
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions examples/vault-auto-unseal/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER
# ----------------------------------------------------------------------------------------------------------------------
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions examples/vault-cluster-private/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER
# ----------------------------------------------------------------------------------------------------------------------
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions examples/vault-dynamodb-backend/dynamodb/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions examples/vault-dynamodb-backend/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER
# ----------------------------------------------------------------------------------------------------------------------
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions examples/vault-ec2-auth/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER
# ----------------------------------------------------------------------------------------------------------------------
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions examples/vault-iam-auth/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER
# ----------------------------------------------------------------------------------------------------------------------
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions examples/vault-s3-backend/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER
# ----------------------------------------------------------------------------------------------------------------------
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER
# ----------------------------------------------------------------------------------------------------------------------
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions modules/private-tls-cert/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions modules/vault-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER
# ----------------------------------------------------------------------------------------------------------------------
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions modules/vault-elb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER
# ----------------------------------------------------------------------------------------------------------------------
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions modules/vault-security-group-rules/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
# forwards compatible with 0.13.x code.
# forwards compatible with 0.14.x code.
required_version = ">= 0.12.26"
}

Expand Down
2 changes: 1 addition & 1 deletion test/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/gruntwork-io/terraform-aws-vault/test
go 1.13

require (
github.com/gruntwork-io/terratest v0.28.15
github.com/gruntwork-io/terratest v0.31.3
github.com/hashicorp/vault/api v1.0.4
github.com/stretchr/testify v1.6.1
)
Loading

0 comments on commit 61db1c3

Please sign in to comment.