Skip to content

Commit

Permalink
feat: update TPG version constraints to allow 4.0 (#35)
Browse files Browse the repository at this point in the history
* feat: update TPG version constraints to allow 4.0

* fmt

* fix: reset c.g.c demos to 3.53

Co-authored-by: Morgante Pell <morgantep@google.com>
  • Loading branch information
cloud-foundation-bot and morgante authored Dec 14, 2021
1 parent 2e16ff4 commit 537186d
Show file tree
Hide file tree
Showing 14 changed files with 87 additions and 50 deletions.
8 changes: 7 additions & 1 deletion examples/dns_forward_and_reverse/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
*/

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 4.0"
}
}
}
8 changes: 7 additions & 1 deletion examples/dns_forward_example/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
*/

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 4.0"
}
}
}
8 changes: 0 additions & 8 deletions examples/global_external_address/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
* limitations under the License.
*/

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

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

# [START compute_external_ip_create]
resource "google_compute_global_address" "default" {
project = var.project_id # Replace this with your service project ID in quotes
Expand Down
12 changes: 11 additions & 1 deletion examples/global_external_address/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,15 @@
*/

terraform {
required_version = ">=0.12.6"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 4.0"
}
null = {
source = "hashicorp/null"
version = "~> 2.1"
}
}
}
8 changes: 0 additions & 8 deletions examples/internal_with_dynamic_ip/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
* limitations under the License.
*/

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

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

# [START compute_internal_ip_create]
module "address" {
source = "terraform-google-modules/address/google"
Expand Down
12 changes: 11 additions & 1 deletion examples/internal_with_dynamic_ip/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,15 @@
*/

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 3.53"
}
null = {
source = "hashicorp/null"
version = "~> 2.1"
}
}
}
8 changes: 0 additions & 8 deletions examples/internal_with_specific_ip/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
* limitations under the License.
*/

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

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

# [START compute_internal_ip_create]
module "address" {
source = "terraform-google-modules/address/google"
Expand Down
12 changes: 11 additions & 1 deletion examples/internal_with_specific_ip/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,15 @@
*/

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 3.53"
}
null = {
source = "hashicorp/null"
version = "~> 2.1"
}
}
}
8 changes: 7 additions & 1 deletion examples/ip_address_only/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
*/

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 4.0"
}
}
}
8 changes: 7 additions & 1 deletion examples/ip_address_with_specific_ip/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
*/

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 4.0"
}
}
}
8 changes: 0 additions & 8 deletions examples/regional_external_address/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
* limitations under the License.
*/

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

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

# [START compute_external_ip_create]
module "address" {
source = "terraform-google-modules/address/google"
Expand Down
12 changes: 11 additions & 1 deletion examples/regional_external_address/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,15 @@
*/

terraform {
required_version = ">=0.12.6"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 3.53"
}
null = {
source = "hashicorp/null"
version = "~> 2.1"
}
}
}
23 changes: 14 additions & 9 deletions test/setup/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@
*/

terraform {
required_version = ">=0.12"
}

provider "google" {
version = "3.50.0"
}

provider "google-beta" {
version = "3.50.0"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "3.50.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "3.50.0"
}
random = {
source = "hashicorp/random"
}
}
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = "~> 3.53"
version = ">= 3.53, < 5.0"
}
}

Expand Down

0 comments on commit 537186d

Please sign in to comment.