Closed jmymy closed 1 year ago
Thanks for the request @jmymy. Agree that this would be great. This had been requested previously and is currently in our backlog. We'll update you when we have more info.
We have a similar issue with cloudbuild. Any news on this?
@jenshonkan84 We are actively working on this feature. It will likely be implemented in two steps:
memberFrom
.
Checklist
Describe the feature or resource
Would be awesome to be able reference Google-managed service accounts in IAM resources.
for example, if i add a PubSubTopic and use a Customer Managed Encryption key on it, I would like to add a IAMMemberPolicy that just refrences the google managed account so I dont need to hardcode a project number in it.
serviceAccount:service-{PROJECT_NUMBER}@gcp-sa-pubsub.iam.gserviceaccount.com
How this could work:
And that would add
serviceAccount:service-{PROJECT_NUMBER}@gcp-sa-pubsub.iam.gserviceaccount.com
to it automatically without hardcoding the project numberAdditional information
https://cloud.google.com/iam/docs/service-agents
gcloud storage service-agent --project=PROJECT_IDENTIFIER
Importance
Will become a blocker as currently in TF i can use a data source to grab thee default service Accounts.