Skip to content

Commit

Permalink
relax google provider versioning. Allow for 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorludwig committed Dec 27, 2019
1 parent c19c299 commit f66ff07
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ determining that location is as follows:
- [gcloud sdk](https://cloud.google.com/sdk/install) >= 269.0.0
- [jq](https://stedolan.github.io/jq/) >= 1.6
- [Terraform](https://www.terraform.io/downloads.html) >= 0.12.6
- [terraform-provider-google] plugin 2.1.x
- [terraform-provider-google-beta] plugin 2.1.x
- [terraform-provider-google] plugin >= 2.1, < 4.0
- [terraform-provider-google-beta] plugin >= 2.1, < 4.0
- [terraform-provider-gsuite] plugin 0.1.x if GSuite functionality is desired

### Permissions
Expand Down Expand Up @@ -233,7 +233,7 @@ credentials to pass to these scripts. Credentials can be provided via two mechan
```terraform
provider "google" {
credentials = "${file(var.credentials_path)}"
version = "~> 1.20"
version = "~> 3.3"
}
module "project-factory" {
Expand All @@ -251,7 +251,7 @@ credentials to pass to these scripts. Credentials can be provided via two mechan
provider "google" {
# Terraform will check the `GOOGLE_APPLICATION_CREDENTIALS` variable, so no `credentials`
# value is needed here.
version = "~> 1.20"
version = "~> 3.3"
}
module "project-factory" {
Expand Down
4 changes: 2 additions & 2 deletions examples/simple_project/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ locals {
*****************************************/
provider "google" {
credentials = file(local.credentials_file_path)
version = "~> 2.18.1"
version = "~> 3.3.0"
}

provider "google-beta" {
credentials = file(local.credentials_file_path)
version = "~> 2.18.1"
version = "~> 3.3.0"
}

provider "null" {
Expand Down
2 changes: 1 addition & 1 deletion modules/app_engine/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ terraform {
required_version = "~> 0.12.6"

required_providers {
google = "~> 2.1"
google = ">= 2.1, < 4.0"
}
}
4 changes: 2 additions & 2 deletions modules/core_project_factory/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ terraform {
required_version = "~> 0.12.6"

required_providers {
google = "~> 2.1"
google-beta = "~> 2.1"
google = ">= 2.1, < 4.0"
google-beta = ">= 2.1, < 4.0"
null = "~> 2.1"
random = "~> 2.2"
}
Expand Down
2 changes: 1 addition & 1 deletion modules/gsuite_group/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ terraform {
required_version = "~> 0.12.6"

required_providers {
google = "~> 2.1"
google = ">= 2.1, < 4.0"
}
}
2 changes: 1 addition & 1 deletion modules/project_services/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ terraform {
required_version = "~> 0.12.6"

required_providers {
google = "~> 2.1"
google = ">= 2.1, < 4.0"
}
}
4 changes: 2 additions & 2 deletions test/fixtures/minimal/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*/

provider "google" {
version = "~> 2.18.1"
version = "~> 3.3.0"
}

provider "google-beta" {
version = "~> 2.18.1"
version = "~> 3.3.0"
}

provider "null" {
Expand Down

0 comments on commit f66ff07

Please sign in to comment.