sparse-intern-71089
11/13/2018, 4:28 AMwhite-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
!helpful-continent-74245
11/13/2018, 4:38 AMhelpful-continent-74245
11/13/2018, 4:40 AMhelpful-continent-74245
11/13/2018, 4:40 AMhelpful-continent-74245
11/13/2018, 4:40 AMPulumi.Output
are like promises to be resolved at executionhelpful-continent-74245
11/13/2018, 4:40 AMwhite-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 AMhelpful-continent-74245
11/13/2018, 4:44 AM