-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
variablize networkUser role management #697
Merged
bharathkkb
merged 13 commits into
terraform-google-modules:master
from
vponnam:feature/subnetsIAM
Apr 8, 2022
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d3aaaa0
variablize networkUser role assignment
vponnam 372beb0
pass grant_services_network_role to core_project_factory
vponnam 91de327
add a new line at the end of variables.tf file
vponnam 3333c31
rename grant_services_network_role to grant_network_role
vponnam bfaec28
README update with new input variable
vponnam 227936c
updates and testcases for grant_network_role
vponnam 41c3342
add v13 upgrade guide and intigration test case
vponnam 2d80d11
upgrade doc updates
vponnam e429a87
Update docs/upgrading_to_project_factory_v13.0.md
vponnam d0d7bff
update test cases scenario context
vponnam 8174690
intigration test case for default project sa
vponnam f0ff8e8
Update test/integration/dynamic_shared_vpc/controls/svpc.rb
vponnam 384adef
Merge branch 'master' into feature/subnetsIAM
bharathkkb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets add also confirm via a test that binding is added for a different service projevt where the flag is true(i.e by default). Maybe
terraform-google-project-factory/examples/shared_vpc/main.tf
Line 112 in 616ede9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test scenario is cover for the service-project