https://pulumi.com logo
#general
Title
# general
o

orange-tailor-85423

03/21/2019, 7:40 AM
Struggling with an issue - at a high level I want to create multiple service accounts (GCP) that are generated by iterating over an array of application names. let’s say I have a config of app1, app2, app3. I want to export the created service accounts because in another stack I want to assign some bucket permissions per service account. Having a hard time with figuring out how to export each of the created accounts as a discrete stack export. Ideas?
I actually created an
Identity
component to make this easier
reading from another stack is something like
Copy code
name: stack.identity.getOutput('ciInf').apply(v => v.account.email),
where stack.ts
Copy code
export const identity = /* new StackReference */
o

orange-tailor-85423

03/21/2019, 11:08 PM
just a heads up everything worked out well …. got the outputs I wanted
also studying the idea of making a Class, thanks again