Struggling with an issue - at a high level I want ...
# general
o
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
just a heads up everything worked out well …. got the outputs I wanted
also studying the idea of making a Class, thanks again