Skip to content

Commit

Permalink
chore: add Terraform 0.13 constraint and module attribution (#224)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Minimum Terraform version increased to 0.13.
  • Loading branch information
morgante authored Dec 29, 2020
1 parent bb31529 commit 6c835be
Show file tree
Hide file tree
Showing 12 changed files with 84 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Make will use bash instead of sh
SHELL := /usr/bin/env bash

DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.12.2
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.13
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
REGISTRY_URL := gcr.io/cloud-foundation-cicd

Expand Down
2 changes: 1 addition & 1 deletion build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,4 @@ tags:
- 'integration'
substitutions:
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.2'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.13'
2 changes: 1 addition & 1 deletion build/lint.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ tags:
- 'lint'
substitutions:
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.2'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.13'
11 changes: 9 additions & 2 deletions modules/fabric-net-firewall/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@
*/

terraform {
required_version = ">=0.12.6"
required_version = ">= 0.13.0"
required_providers {
google = "<4.0,>= 2.12"
google = {
source = "hashicorp/google"
version = "<4.0,>= 2.12"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:fabric-net-firewall/v3.0.0"
}
}
11 changes: 9 additions & 2 deletions modules/fabric-net-svpc-access/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@
*/

terraform {
required_version = ">=0.12.6"
required_version = ">= 0.13.0"
required_providers {
google = "<4.0,>= 2.12"
google = {
source = "hashicorp/google"
version = "<4.0,>= 2.12"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:fabric-net-svpc-access/v3.0.0"
}
}
11 changes: 9 additions & 2 deletions modules/network-peering/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@
*/

terraform {
required_version = ">=0.12.6"
required_version = ">= 0.13.0"
required_providers {
google = "<4.0,>= 2.12"
google = {
source = "hashicorp/google"
version = "<4.0,>= 2.12"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:network-peering/v3.0.0"
}
}
11 changes: 9 additions & 2 deletions modules/routes-beta/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@
*/

terraform {
required_version = ">=0.12.6"
required_version = ">= 0.13.0"
required_providers {
google-beta = "~> 2.19.0"
google-beta = {
source = "hashicorp/google-beta"
version = "~> 3.0"
}
}

provider_meta "google-beta" {
module_name = "blueprints/terraform/terraform-google-network:routes-beta/v3.0.0"
}
}
11 changes: 9 additions & 2 deletions modules/routes/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@
*/

terraform {
required_version = ">=0.12.6"
required_version = ">= 0.13.0"
required_providers {
google = "<4.0,>= 2.12"
google = {
source = "hashicorp/google"
version = "<4.0,>= 2.12"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:routes/v3.0.0"
}
}
11 changes: 9 additions & 2 deletions modules/subnets-beta/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@
*/

terraform {
required_version = ">=0.12.6"
required_version = ">= 0.13.0"
required_providers {
google-beta = ">= 2.19.0, <4.0.0"
google-beta = {
source = "hashicorp/google-beta"
version = "<4.0,>= 2.19"
}
}

provider_meta "google-beta" {
module_name = "blueprints/terraform/terraform-google-network:subnets-beta/v3.0.0"
}
}
11 changes: 9 additions & 2 deletions modules/subnets/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@
*/

terraform {
required_version = ">=0.12.6"
required_version = ">= 0.13.0"
required_providers {
google = "<4.0,>= 2.12"
google = {
source = "hashicorp/google"
version = "<4.0,>= 2.12"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:subnets/v3.0.0"
}
}
11 changes: 9 additions & 2 deletions modules/vpc/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@
*/

terraform {
required_version = ">=0.12.6"
required_version = ">= 0.13.0"
required_providers {
google = "<4.0,>= 3.45"
google = {
source = "hashicorp/google"
version = "~> 3.45"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network:vpc/v3.0.0"
}
}
11 changes: 9 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@
*/

terraform {
required_version = ">=0.12.6"
required_version = ">= 0.13.0"
required_providers {
google = "<4.0,>= 2.12"
google = {
source = "hashicorp/google"
version = "<4.0,>= 2.12"
}
}

provider_meta "google" {
module_name = "blueprints/terraform/terraform-google-network/v3.0.0"
}
}

0 comments on commit 6c835be

Please sign in to comment.