google deployment manager assigning IAM policies at project

后端 未结 6 1856
情话喂你
情话喂你 2020-12-18 16:45

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

6条回答
  •  萌比男神i
    2020-12-18 17:03

    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

提交回复
热议问题