shy-microphone-2880701/10/2020, 9:19 PM
the right way to do that?
astonishing-cartoon-3700001/10/2020, 9:27 PM
then I think you can simply psuedo-js-code
idk if it's "right way to do it"
const awsAccounts = Pulumi.Output<aswAccounts> const accountIds = awsAccounts.map(account => account.apply(val => val.id))
shy-microphone-2880701/10/2020, 9:30 PM
but cannot figure out how to accomplish that and keep typescript happy
makes the compiler happy but still need to do a test run, it seems like there should be a simpler way to do that
const sourceIds = pulumi.all([account, otherAccount]).apply(accounts => accounts.map(a => a.id.get())).get()
astonishing-cartoon-3700001/10/2020, 9:41 PM
says : This function is only callable in code that runs in the cloud post-deployment.
This function is only callable in code that runs in the cloud post-deployment. At this point all Output values will be known and can be safely retrieved. During pulumi deployment or preview execution this must not be called
shy-microphone-2880701/10/2020, 9:42 PM
astonishing-cartoon-3700001/10/2020, 9:43 PM
has worked for me in the past, but I feel that it isn't a good pattern. None of it will show in preview
acoustic-florist-1262801/10/2020, 10:50 PM
shy-microphone-2880701/13/2020, 9:22 PM