ResMan, top level folders and project factory: IAM denied in PF to create sub-folders under top-level-folder #2386
-
I'm working with the v32 release of FAST and have successfully - I think - deployed stages 00-02 and am working on the stage 3 project factory. I am not implementing the features of GCVE, GKE, DP in stage 1 resman but I have implemented Sandbox and I'm attempting to implement "Teams" via a top-level-folder configuration. While I have the default dev/prod configuration in stage 1, what I would ultimately like is something similar to what's the diagram for stage 3 project factory: I'm running into issues with permissions errors in stage 3 when I try to create subfolders under my Teams folder :
My stage 3 provider is configured with impersonate_service_account = prefix-resman-pf-0@prefix-prod-iac-core-0.iam.gserviceaccount.com which does not have access to the "Teams" top-level-folder according to the console. I'm at a loss of how to create a top-level-folder and then delegate access to project-factory to create subfolders under that top level folder. Do I need to treat the top-level-folder as a "branch" in stage 1 like branch-networking.tf, branch-project-factory.tf, branch-gcve.tf, branch-gke.tf, etc. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Jason, can you try somethign similar to this in your resman stage tfvars? We need to properly document all this stuff but it's taking us longer than anticipated... Remember to adjust project and organization ids. top_level_folders = {
teams = {
name = "Teams"
iam_by_principals = {
"serviceAccount:[email protected]" = [
"roles/owner",
"roles/resourcemanager.folderAdmin",
"roles/resourcemanager.projectCreator",
"organizations/366118655033/roles/serviceProjectNetworkAdmin"
]
}
tag_bindings = {
environment = "tagValues/1028757044334"
}
}
} |
Beta Was this translation helpful? Give feedback.
Jason, can you try somethign similar to this in your resman stage tfvars? We need to properly document all this stuff but it's taking us longer than anticipated...
Remember to adjust project and organization ids.