https://pulumi.com logo
Title
f

future-window-78560

03/03/2022, 7:12 PM
Hey Developers! Is there any guide for adding pre-defined roles to GCP using Pulumi?
g

great-queen-39697

03/03/2022, 8:36 PM
Are you trying to understand how to add the standard predefined roles to a service account, for example?
If that's the case, you're looking for the IAMBinding resource for various resources. Here's one of our examples to explain with a bit of code: https://github.com/pulumi/examples/blob/master/gcp-ts-gke-serviceaccount/index.ts#L15-L23
👀 1
✅ 1
f

future-window-78560

03/03/2022, 9:29 PM
Yes I am trying to understand how to add the standard predefined roles to a service account