helpful-continent-74245
11/13/2018, 4:28 AMbuckets
variables, and I want to generate the string: ["arn:aws:s3:::${bucket1.id}", "arn:aws:s3:::${bucket2.id}",...]
white-balloon-205
pulumi.all(buckets.map(b => b.id.apply(id => `arn:aws:s3:::${id}`)))
The upside is that there is ultimately a lot of flexibility, but you are right that these cases can be subtle. We’re looking into a few ways to simplify many common cases further here.helpful-continent-74245
11/13/2018, 4:36 AMpulumi.all
!Pulumi.Output
are like promises to be resolved at executionwhite-balloon-205
Output
is effectively a promise (it is actually a promise along with resource dependency information).
Re: launch a function of your own - you can use .apply(JSON.stringify)
off the previous answer to compute a Output<string>
.helpful-continent-74245
11/13/2018, 4:44 AM