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

Commit

Permalink
Update to Terraform 0.15 (#84)
Browse files Browse the repository at this point in the history
* Add required_providers block

* Update to Terraform 0.15
  • Loading branch information
brikis98 authored May 25, 2021
1 parent f623546 commit 089112c
Show file tree
Hide file tree
Showing 14 changed files with 112 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env: &env
GRUNTWORK_INSTALLER_VERSION: v0.0.29
TERRATEST_LOG_PARSER_VERSION: v0.30.10
MODULE_CI_VERSION: v0.29.0
TERRAFORM_VERSION: 0.14.8
TERRAFORM_VERSION: 0.15.1
TERRAGRUNT_VERSION: NONE
PACKER_VERSION: 1.6.4
GOLANG_VERSION: 1.16
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Couchbase AWS Module

[![Maintained by Gruntwork.io](https://img.shields.io/badge/maintained%20by-gruntwork.io-%235849a6.svg)](https://gruntwork.io/?ref=repo_aws_couchbase)
![Terraform Version](https://img.shields.io/badge/tf-%3E%3D0.14.0-blue.svg)
![Terraform Version](https://img.shields.io/badge/tf-%3E%3D0.15.0-blue.svg)

This repo contains a set of modules for deploying [Couchbase](https://www.couchbase.com/) on
[AWS](https://aws.amazon.com/) using [Terraform](https://www.terraform.io/) and [Packer](https://www.packer.io/).
Expand Down
4 changes: 2 additions & 2 deletions examples/couchbase-cluster-mds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# ---------------------------------------------------------------------------------------------------------------------

terraform {
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.15.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.14.x code.
# forwards compatible with 0.15.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions examples/couchbase-cluster-simple-dns-tls/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# ---------------------------------------------------------------------------------------------------------------------

terraform {
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.15.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.14.x code.
# forwards compatible with 0.15.x code.
required_version = ">= 0.12.26"
}

Expand Down
4 changes: 2 additions & 2 deletions examples/couchbase-multi-datacenter-replication/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# ---------------------------------------------------------------------------------------------------------------------

terraform {
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.15.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.14.x code.
# forwards compatible with 0.15.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 @@ -6,9 +6,9 @@
# ---------------------------------------------------------------------------------------------------------------------

terraform {
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.15.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.14.x code.
# forwards compatible with 0.15.x code.
required_version = ">= 0.12.26"
}

Expand Down
11 changes: 9 additions & 2 deletions modules/couchbase-cluster/main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
terraform {
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.15.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.14.x code.
# forwards compatible with 0.15.x code.
required_version = ">= 0.12.26"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0.0"
}
}
}

# ---------------------------------------------------------------------------------------------------------------------
Expand Down
11 changes: 9 additions & 2 deletions modules/couchbase-iam-policies/main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
terraform {
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.15.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.14.x code.
# forwards compatible with 0.15.x code.
required_version = ">= 0.12.26"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0.0"
}
}
}

# ---------------------------------------------------------------------------------------------------------------------
Expand Down
11 changes: 9 additions & 2 deletions modules/couchbase-server-security-group-rules/main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
terraform {
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.15.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.14.x code.
# forwards compatible with 0.15.x code.
required_version = ">= 0.12.26"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0.0"
}
}
}

# ---------------------------------------------------------------------------------------------------------------------
Expand Down
11 changes: 9 additions & 2 deletions modules/load-balancer-target-group/main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
terraform {
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.15.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.14.x code.
# forwards compatible with 0.15.x code.
required_version = ">= 0.12.26"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0.0"
}
}
}

# ---------------------------------------------------------------------------------------------------------------------
Expand Down
11 changes: 9 additions & 2 deletions modules/load-balancer/main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
terraform {
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.15.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.14.x code.
# forwards compatible with 0.15.x code.
required_version = ">= 0.12.26"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0.0"
}
}
}

# ---------------------------------------------------------------------------------------------------------------------
Expand Down
11 changes: 9 additions & 2 deletions modules/sync-gateway-security-group-rules/main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
terraform {
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
# This module is now only being tested with Terraform 0.15.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.14.x code.
# forwards compatible with 0.15.x code.
required_version = ">= 0.12.26"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0.0"
}
}
}

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

require (
github.com/gruntwork-io/terratest v0.31.3
github.com/gruntwork-io/terratest v0.33.0
github.com/stretchr/testify v1.6.1
)
Loading

0 comments on commit 089112c

Please sign in to comment.