I am using to update a project with IAM policies. in GCP deployment manager\'s templates, they are using python Jinja file, but I would like to add IAM policy (assign a user
Please avoid using these solutions:
gcp-types/cloudresourcemanager-v1:cloudresourcemanager.projects.getIamPolicy
gcp-types/cloudresourcemanager-v1:cloudresourcemanager.projects.setIamPolicy
It can cause concurrent IAM policy update errors. The Deployment Manager team is providing a new type binding this 2 actions together:
'type': 'gcp-types/cloudresourcemanager-v1:virtual.projects.iamMemberBinding',
Check out the following implementations as part of the Cloud Foundation Toolkit provided by Google Cloud:
Cloud Foundation Toolkit NEW repo - IAM binding
Cloud Foundation Toolkit OLD repo - IAM binding
Cloud Foundation Toolkit NEW repo - Project Creation Factory