-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: replace grant_services_network_role with grant_network_role fo…
…r networkUser role management (#697) * variablize networkUser role assignment * pass grant_services_network_role to core_project_factory * add a new line at the end of variables.tf file * rename grant_services_network_role to grant_network_role * README update with new input variable * updates and testcases for grant_network_role * add v13 upgrade guide and intigration test case * upgrade doc updates * Update docs/upgrading_to_project_factory_v13.0.md Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com> * update test cases scenario context * intigration test case for default project sa * Update test/integration/dynamic_shared_vpc/controls/svpc.rb Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com> Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com>
- Loading branch information
1 parent
63c7b40
commit d309270
Showing
14 changed files
with
115 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Upgrading to Project Factory v13.0 | ||
|
||
The v13.0 release of Project Factory is a backwards incompatible release. | ||
|
||
## Migration Instructions | ||
|
||
### `grant_services_network_role` renamed to `grant_network_role` | ||
|
||
Variable `grant_services_network_role` is renamed to `grant_network_role` to provide the ability to not manage networkUser role through project factory module v13.0 | ||
|
||
```diff | ||
module "project-factory" { | ||
source = "terraform-google-modules/project-factory/google" | ||
- version = "~> 12.0" | ||
+ version = "~> 13.0" | ||
|
||
name = "pf-test-1" | ||
random_project_id = "true" | ||
org_id = "1234567890" | ||
usage_bucket_name = "pf-test-1-usage-report-bucket" | ||
usage_bucket_prefix = "pf/test/1/integration" | ||
billing_account = "ABCDEF-ABCDEF-ABCDEF" | ||
- grant_services_network_role = "..." | ||
+ grant_network_role = "..." | ||
} | ||
``` | ||
|
||
Service accounts principles on which networkUser can be managed through `grant_network_role` variable. | ||
- Project default service account | ||
- [Google APIs service agent](https://cloud.google.com/compute/docs/access/service-accounts#google_apis_service_agent) | ||
- group_email | ||
- dataflow, dataproc, composer, container, and vpcaccess API [agent accounts](https://github.com/terraform-google-modules/terraform-google-project-factory/blob/616ede9456cc8f86ef7995192af3473d17ee7946/modules/shared_vpc_access/main.tf#L24-L30). | ||
|
||
Additional roles that are managed through `grant_network_role` variable. | ||
- roles/container.hostServiceAgentUser on "serviceAccount:service-{PROJECT-NUMBER}@container-engine-robot.iam.gserviceaccount.com | ||
- roles/composer.sharedVpcAgent on "service-{PROJECT-NUMBER}@cloudcomposer-accounts.iam.gserviceaccount.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters