nice-airport-15607
06/15/2021, 3:37 PMnote
things like
During some program executions, apply doesn't run. For example, it won't run during a preview, when resource output values may be unknown. Therefore, you should avoid side-effects within the callbacks. For this reason, you should not allocate new resources inside of your callbacks either, as it could lead to pulumi preview being wrong.
☝️ then you should also show examples of what should be expected as an example of “how to do this” otherwise it’s kind of tiresome to pulumi up
a bunch of times just to fail…billowy-army-68599
06/15/2021, 5:17 PMnice-airport-15607
06/15/2021, 6:19 PMapply
with pulumi preview
then all you have left is to pulumi up
, but if you have a lot of resources and it takes ~10min to deploy it up, and it fails, that’s a shame…
That being said, an example of TopicSubscription
for example is only showing the code to be used, not HOW to use it… https://www.pulumi.com/docs/reference/pkg/aws/sns/topicsubscription/#look-up
Since its an Output
im assuming something like .apply(0 => o.arn)
should, or could work, but where’s that example?
I also looked at the github link you’ve posted, and i dont feel that fulfills the necessary examples IMO either, but what do i know…