Skip to content

Commit

Permalink
fix: relax version constraints to enable terraform 0.13.x compatibili…
Browse files Browse the repository at this point in the history
…ty (#108)
  • Loading branch information
brandonjbjelland authored Aug 26, 2020
1 parent e942ccd commit 6fb2b42
Show file tree
Hide file tree
Showing 34 changed files with 40 additions and 38 deletions.
1 change: 1 addition & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
---
driver:
name: terraform
verify_version: false

provisioner:
name: terraform
Expand Down
2 changes: 1 addition & 1 deletion autogen/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
required_providers {
google = ">= 2.7, <4.0"
google-beta = ">= 2.7, <4.0"
Expand Down
2 changes: 1 addition & 1 deletion build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,4 @@ tags:
- 'integration'
substitutions:
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.0'
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'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.0'
2 changes: 1 addition & 1 deletion examples/compute_instance/simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion examples/instance_template/additional_disks/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion examples/instance_template/simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion examples/mig/autoscaler/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion examples/mig/full/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion examples/mig/simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion examples/mig_with_percent/simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion examples/umig/full/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion examples/umig/named_ports/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion examples/umig/simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion examples/umig/static_ips/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion modules/compute_instance/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
required_providers {
google = ">= 2.7, <4.0"
}
Expand Down
2 changes: 1 addition & 1 deletion modules/instance_template/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
required_providers {
google = ">= 2.7, <4.0"
}
Expand Down
2 changes: 1 addition & 1 deletion modules/mig/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
required_providers {
google = ">= 2.7, <4.0"
google-beta = ">= 2.7, <4.0"
Expand Down
2 changes: 1 addition & 1 deletion modules/mig_with_percent/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
required_providers {
google = ">= 2.7, <4.0"
google-beta = ">= 2.7, <4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion modules/umig/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
required_providers {
google = ">= 2.7, <4.0"
}
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/compute_instance/simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion test/fixtures/instance_template/simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion test/fixtures/mig/autoscaler/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion test/fixtures/mig/simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion test/fixtures/mig_with_percent/simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion test/fixtures/umig/named_ports/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion test/fixtures/umig/simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
2 changes: 1 addition & 1 deletion test/fixtures/umig/static_ips/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}
13 changes: 7 additions & 6 deletions test/setup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ provider "random" {

module "project_ci_vm" {
source = "terraform-google-modules/project-factory/google"
version = "~> 7.0"
version = "~> 9.0"

name = "ci-vm-module"
random_project_id = true
org_id = var.org_id
folder_id = var.folder_id
billing_account = var.billing_account
name = "ci-vm-module"
random_project_id = true
org_id = var.org_id
folder_id = var.folder_id
billing_account = var.billing_account
skip_gcloud_download = true

activate_apis = [
"cloudresourcemanager.googleapis.com",
Expand Down
2 changes: 1 addition & 1 deletion test/setup/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

terraform {
required_version = "~> 0.12.6"
required_version = ">=0.12.6, <0.14"
}

0 comments on commit 6fb2b42

Please sign in to comment.