Skip to content

Commit

Permalink
fix(TF>=1.3)!: update provider and metadata (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Dec 30, 2024
1 parent 940e523 commit 0bab52d
Show file tree
Hide file tree
Showing 22 changed files with 98 additions and 107 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To include G Suite integration for creating groups and adding Service Accounts i

## Compatibility

This module is meant for use with Terraform 0.13+ and tested using Terraform 1.3+. If you find incompatibilities using Terraform >=0.13, please open an issue.
This module is meant for use with Terraform 1.3+ and tested using Terraform 1.10+. If you find incompatibilities using Terraform >= 1.3, please open an issue.
If you haven't
[upgraded][terraform-0.13-upgrade] and need a Terraform
0.12.x-compatible version of this module, the last released version
Expand Down Expand Up @@ -200,9 +200,9 @@ 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.13.0
- [terraform-provider-google] plugin >= 5.33
- [terraform-provider-google-beta] plugin >= 5.33
- [Terraform](https://www.terraform.io/downloads.html) >= 1.3
- [terraform-provider-google] plugin >= 5.41
- [terraform-provider-google-beta] plugin >= 5.41
- [terraform-provider-gsuite] plugin ~> 0.1.x if GSuite functionality is desired

### Permissions
Expand Down Expand Up @@ -338,7 +338,7 @@ The core Project Factory solely deals with GCP APIs and does not integrate G Sui
## Install
### Terraform

Be sure you have the correct Terraform version (0.13.0+), you can choose the
Be sure you have the correct Terraform version (1.3+), you can choose the
binary here:

- https://releases.hashicorp.com/terraform/
Expand Down
25 changes: 12 additions & 13 deletions metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ spec:
title: Google Cloud Project Factory Terraform Module
source:
repo: https://github.com/terraform-google-modules/terraform-google-project-factory.git
sourceType: git
version: 17.1.0
actuationTool:
flavor: Terraform
version: ">=0.13.0"
version: ">= 1.3"
description: {}
content:
subBlueprints:
Expand Down Expand Up @@ -356,13 +355,10 @@ spec:
roles:
- level: Project
roles:
- roles/owner
- roles/compute.admin
- roles/iam.serviceAccountAdmin
- roles/resourcemanager.projectIamAdmin
- roles/storage.admin
- roles/iam.serviceAccountUser
- roles/billing.projectManager
- roles/accesscontextmanager.policyAdmin
- roles/resourcemanager.organizationViewer
- roles/resourcemanager.tagAdmin
- roles/resourcemanager.tagUser
- level: Project
roles:
- roles/owner
Expand All @@ -373,10 +369,13 @@ spec:
- roles/compute.xpnAdmin
- level: Project
roles:
- roles/accesscontextmanager.policyAdmin
- roles/resourcemanager.organizationViewer
- roles/resourcemanager.tagAdmin
- roles/resourcemanager.tagUser
- roles/owner
- roles/compute.admin
- roles/iam.serviceAccountAdmin
- roles/resourcemanager.projectIamAdmin
- roles/storage.admin
- roles/iam.serviceAccountUser
- roles/billing.projectManager
services:
- admin.googleapis.com
- appengine.googleapis.com
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 @@ -15,7 +15,7 @@
*/

terraform {
required_version = ">= 0.13"
required_version = ">= 1.3"

required_providers {
google = {
Expand Down
15 changes: 7 additions & 8 deletions modules/budget/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ spec:
title: Budget configuration for a project
source:
repo: https://github.com/terraform-google-modules/terraform-google-project-factory.git
sourceType: git
dir: /modules/budget
version: 17.1.0
actuationTool:
flavor: Terraform
version: ">= 0.13"
version: ">= 1.3"
description: {}
content:
examples:
Expand Down Expand Up @@ -120,6 +119,12 @@ spec:
description: Resource name of the budget. Values are of the form `billingAccounts/{billingAccountId}/budgets/{budgetId}.`
requirements:
roles:
- level: Project
roles:
- roles/accesscontextmanager.policyAdmin
- roles/resourcemanager.organizationViewer
- roles/resourcemanager.tagAdmin
- roles/resourcemanager.tagUser
- level: Project
roles:
- roles/owner
Expand All @@ -128,12 +133,6 @@ spec:
- roles/resourcemanager.folderIamAdmin
- roles/billing.projectManager
- roles/compute.xpnAdmin
- level: Project
roles:
- roles/accesscontextmanager.policyAdmin
- roles/resourcemanager.organizationViewer
- roles/resourcemanager.tagAdmin
- roles/resourcemanager.tagUser
- level: Project
roles:
- roles/owner
Expand Down
2 changes: 1 addition & 1 deletion modules/budget/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

terraform {
required_version = ">= 0.13"
required_version = ">= 1.3"

required_providers {
google = {
Expand Down
2 changes: 1 addition & 1 deletion modules/core_project_factory/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

terraform {
required_version = ">= 0.13"
required_version = ">= 1.3"

required_providers {
google = {
Expand Down
15 changes: 7 additions & 8 deletions modules/essential_contacts/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ spec:
title: Essential Contacts configuration
source:
repo: https://github.com/terraform-google-modules/terraform-google-project-factory.git
sourceType: git
dir: /modules/essential_contacts
version: 17.1.0
actuationTool:
flavor: Terraform
version: ">= 0.13"
version: ">= 1.3"
description: {}
content:
examples:
Expand Down Expand Up @@ -77,6 +76,12 @@ spec:
description: The GCP project you want to enable APIs on
requirements:
roles:
- level: Project
roles:
- roles/accesscontextmanager.policyAdmin
- roles/resourcemanager.organizationViewer
- roles/resourcemanager.tagAdmin
- roles/resourcemanager.tagUser
- level: Project
roles:
- roles/owner
Expand All @@ -85,12 +90,6 @@ spec:
- roles/resourcemanager.folderIamAdmin
- roles/billing.projectManager
- roles/compute.xpnAdmin
- level: Project
roles:
- roles/accesscontextmanager.policyAdmin
- roles/resourcemanager.organizationViewer
- roles/resourcemanager.tagAdmin
- roles/resourcemanager.tagUser
- level: Project
roles:
- roles/owner
Expand Down
2 changes: 1 addition & 1 deletion modules/essential_contacts/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

terraform {
required_version = ">= 0.13"
required_version = ">= 1.3"
required_providers {
google = {
source = "hashicorp/google"
Expand Down
19 changes: 9 additions & 10 deletions modules/fabric-project/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ spec:
title: Google Cloud Simple Project Creation
source:
repo: https://github.com/terraform-google-modules/terraform-google-project-factory.git
sourceType: git
dir: /modules/fabric-project
version: 17.1.0
actuationTool:
flavor: Terraform
version: ">= 0.13"
version: ">= 1.3"
description: {}
content:
examples:
Expand Down Expand Up @@ -157,6 +156,14 @@ spec:
- roles/resourcemanager.organizationViewer
- roles/resourcemanager.tagAdmin
- roles/resourcemanager.tagUser
- level: Project
roles:
- roles/owner
- roles/resourcemanager.projectCreator
- roles/resourcemanager.folderAdmin
- roles/resourcemanager.folderIamAdmin
- roles/billing.projectManager
- roles/compute.xpnAdmin
- level: Project
roles:
- roles/owner
Expand All @@ -166,14 +173,6 @@ spec:
- roles/storage.admin
- roles/iam.serviceAccountUser
- roles/billing.projectManager
- level: Project
roles:
- roles/owner
- roles/resourcemanager.projectCreator
- roles/resourcemanager.folderAdmin
- roles/resourcemanager.folderIamAdmin
- roles/billing.projectManager
- roles/compute.xpnAdmin
services:
- admin.googleapis.com
- appengine.googleapis.com
Expand Down
2 changes: 1 addition & 1 deletion modules/fabric-project/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

terraform {
required_version = ">= 0.13"
required_version = ">= 1.3"

required_providers {
google = {
Expand Down
25 changes: 12 additions & 13 deletions modules/gsuite_enabled/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ spec:
title: Google Cloud Project Factory with G Suite Terraform Module
source:
repo: https://github.com/terraform-google-modules/terraform-google-project-factory.git
sourceType: git
dir: /modules/gsuite_enabled
version: 17.1.0
actuationTool:
flavor: Terraform
version: ">= 0.13"
version: ">= 1.3"
description: {}
content:
examples:
Expand Down Expand Up @@ -250,13 +249,10 @@ spec:
roles:
- level: Project
roles:
- roles/owner
- roles/compute.admin
- roles/iam.serviceAccountAdmin
- roles/resourcemanager.projectIamAdmin
- roles/storage.admin
- roles/iam.serviceAccountUser
- roles/billing.projectManager
- roles/accesscontextmanager.policyAdmin
- roles/resourcemanager.organizationViewer
- roles/resourcemanager.tagAdmin
- roles/resourcemanager.tagUser
- level: Project
roles:
- roles/owner
Expand All @@ -267,10 +263,13 @@ spec:
- roles/compute.xpnAdmin
- level: Project
roles:
- roles/accesscontextmanager.policyAdmin
- roles/resourcemanager.organizationViewer
- roles/resourcemanager.tagAdmin
- roles/resourcemanager.tagUser
- roles/owner
- roles/compute.admin
- roles/iam.serviceAccountAdmin
- roles/resourcemanager.projectIamAdmin
- roles/storage.admin
- roles/iam.serviceAccountUser
- roles/billing.projectManager
services:
- admin.googleapis.com
- appengine.googleapis.com
Expand Down
2 changes: 1 addition & 1 deletion modules/gsuite_enabled/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

terraform {
required_version = ">= 0.13"
required_version = ">= 1.3"
required_providers {
google = {
source = "hashicorp/google"
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 @@ -15,7 +15,7 @@
*/

terraform {
required_version = ">= 0.13"
required_version = ">= 1.3"
required_providers {
google = {
source = "hashicorp/google"
Expand Down
17 changes: 8 additions & 9 deletions modules/project_services/metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Google LLC
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -23,12 +23,11 @@ spec:
title: Project API Activation
source:
repo: https://github.com/terraform-google-modules/terraform-google-project-factory.git
sourceType: git
dir: /modules/project_services
version: 17.1.0
actuationTool:
flavor: Terraform
version: ">= 0.13"
version: ">= 1.3"
description: {}
content:
examples:
Expand Down Expand Up @@ -102,6 +101,12 @@ spec:
type: string
requirements:
roles:
- level: Project
roles:
- roles/accesscontextmanager.policyAdmin
- roles/resourcemanager.organizationViewer
- roles/resourcemanager.tagAdmin
- roles/resourcemanager.tagUser
- level: Project
roles:
- roles/owner
Expand All @@ -110,12 +115,6 @@ spec:
- roles/resourcemanager.folderIamAdmin
- roles/billing.projectManager
- roles/compute.xpnAdmin
- level: Project
roles:
- roles/accesscontextmanager.policyAdmin
- roles/resourcemanager.organizationViewer
- roles/resourcemanager.tagAdmin
- roles/resourcemanager.tagUser
- level: Project
roles:
- roles/owner
Expand Down
2 changes: 1 addition & 1 deletion modules/project_services/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

terraform {
required_version = ">= 0.13"
required_version = ">= 1.3"
required_providers {
google = {
source = "hashicorp/google"
Expand Down
Loading

0 comments on commit 0bab52d

Please sign in to comment.