Skip to content

Commit

Permalink
Fixes terraform-google-modules#261: Invalid plan when re-applying ter…
Browse files Browse the repository at this point in the history
…raform module

terraform-google-modules#261

Bumbed minimal provider version to 2.17
  • Loading branch information
bohdanyurov-gl committed Oct 28, 2019
1 parent adf341e commit a040de6
Show file tree
Hide file tree
Showing 21 changed files with 34 additions and 18 deletions.
10 changes: 10 additions & 0 deletions autogen/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@
terraform {
required_version = ">= 0.12"
}

{% if beta_cluster %}
provider "google-beta" {
version = "~> 2.17.0"
}
{% else %}
provider "google" {
version = "~> 2.17.0"
}
{% endif %}
1 change: 0 additions & 1 deletion examples/deploy_service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
1 change: 0 additions & 1 deletion examples/disable_client_cert/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
1 change: 0 additions & 1 deletion examples/node_pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google-beta" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
1 change: 0 additions & 1 deletion examples/node_pool_update_variant/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
1 change: 0 additions & 1 deletion examples/shared_vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
1 change: 0 additions & 1 deletion examples/simple_regional/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
1 change: 0 additions & 1 deletion examples/simple_regional_private/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
1 change: 0 additions & 1 deletion examples/simple_zonal/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
1 change: 0 additions & 1 deletion examples/simple_zonal_private/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
1 change: 0 additions & 1 deletion examples/stub_domains/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
5 changes: 0 additions & 5 deletions examples/stub_domains_private/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,9 @@
*/

provider "google" {
version = "~> 2.12.0"
region = var.region
}

provider "random" {
version = "~> 2.1"
}

data "google_compute_subnetwork" "subnetwork" {
name = var.subnetwork
project = var.project_id
Expand Down
1 change: 0 additions & 1 deletion examples/stub_domains_upstream_nameservers/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
1 change: 0 additions & 1 deletion examples/upstream_nameservers/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
1 change: 0 additions & 1 deletion examples/workload_metadata_config/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
}

provider "google-beta" {
version = "~> 2.12.0"
region = var.region
}

Expand Down
4 changes: 4 additions & 0 deletions modules/beta-private-cluster-update-variant/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
terraform {
required_version = ">= 0.12"
}

provider "google-beta" {
version = "~> 2.17.0"
}
4 changes: 4 additions & 0 deletions modules/beta-private-cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
terraform {
required_version = ">= 0.12"
}

provider "google-beta" {
version = "~> 2.17.0"
}
4 changes: 4 additions & 0 deletions modules/beta-public-cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
terraform {
required_version = ">= 0.12"
}

provider "google-beta" {
version = "~> 2.17.0"
}
4 changes: 4 additions & 0 deletions modules/private-cluster-update-variant/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
terraform {
required_version = ">= 0.12"
}

provider "google" {
version = "~> 2.17.0"
}
4 changes: 4 additions & 0 deletions modules/private-cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
terraform {
required_version = ">= 0.12"
}

provider "google" {
version = "~> 2.17.0"
}
4 changes: 4 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
terraform {
required_version = ">= 0.12"
}

provider "google" {
version = "~> 2.17.0"
}

0 comments on commit a040de6

Please sign in to comment.