Skip to content

Commit

Permalink
chore: Update null and random providers (#228)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `null` and `random` providers upgraded to `v3.x.x`.
  • Loading branch information
fboula committed Jun 22, 2021
1 parent 2237a3d commit 21d3771
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 107 deletions.
5 changes: 0 additions & 5 deletions examples/mssql-public/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
* limitations under the License.
*/

provider "google-beta" {
version = ">= 3.1.0, <4.0.0"
region = var.region
}

module "mssql" {
source = "../../modules/mssql"
name = var.name
Expand Down
12 changes: 0 additions & 12 deletions examples/mysql-ha/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@
* limitations under the License.
*/

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

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

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

locals {
read_replica_ip_configuration = {
ipv4_enabled = true
Expand Down
16 changes: 0 additions & 16 deletions examples/mysql-private/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@
* limitations under the License.
*/

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

provider "google-beta" {
version = "~> 3.22"
}

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

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

resource "random_id" "suffix" {
byte_length = 5
}
Expand Down
12 changes: 0 additions & 12 deletions examples/mysql-public/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@
* limitations under the License.
*/

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

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

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

resource "random_id" "name" {
byte_length = 2
}
Expand Down
11 changes: 0 additions & 11 deletions examples/postgresql-ha/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@
* limitations under the License.
*/

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

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

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

locals {
read_replica_ip_configuration = {
Expand Down
15 changes: 0 additions & 15 deletions examples/postgresql-public-iam/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,6 @@
* limitations under the License.
*/

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

provider "google-beta" {
version = "~> 3.5"
}

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

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

module "postgresql-db" {
source = "../../modules/postgresql"
Expand Down
15 changes: 0 additions & 15 deletions examples/postgresql-public/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,6 @@
* limitations under the License.
*/

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

provider "google-beta" {
version = "~> 3.5"
}

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

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

module "postgresql-db" {
source = "../../modules/postgresql"
Expand Down
4 changes: 2 additions & 2 deletions modules/mysql/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ terraform {
required_providers {
null = {
source = "hashicorp/null"
version = "~> 2.1"
version = "~> 3.1.0"
}
random = {
source = "hashicorp/random"
version = "~> 2.2"
version = "~> 3.1.0"
}
google = {
source = "hashicorp/google"
Expand Down
4 changes: 2 additions & 2 deletions modules/postgresql/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ terraform {
required_providers {
null = {
source = "hashicorp/null"
version = "~> 2.1"
version = "~> 3.1.0"
}
random = {
source = "hashicorp/random"
version = "~> 2.2"
version = "~> 3.1.0"
}
google = {
source = "hashicorp/google"
Expand Down
2 changes: 1 addition & 1 deletion modules/private_service_access/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ terraform {
required_providers {
null = {
source = "hashicorp/null"
version = "~> 2.1"
version = "~> 3.1.0"
}
google = {
source = "hashicorp/google"
Expand Down
16 changes: 0 additions & 16 deletions test/setup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@
* limitations under the License.
*/

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

provider "google-beta" {
version = "~> 3.53"
}

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

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

module "project" {
source = "terraform-google-modules/project-factory/google"
version = "~> 10.0"
Expand Down

0 comments on commit 21d3771

Please sign in to comment.