https://pulumi.com logo
b

bulky-policeman-29913

12/08/2021, 3:29 PM
If I use a method to get a resource say
aws.sns.getTopic({name: name})
and it returns a promise. How exactly do I pass a value like the arn to another resource for use. It's not a pulumi input/output. I would prefer not to have my entire other resource definition created in the promise block
b

billowy-army-68599

12/08/2021, 3:29 PM
there should now be a
aws.sns.getTopicOutput
which returns the values as an output
if you don't have those, update your provider
b

bulky-policeman-29913

12/08/2021, 3:31 PM
oh awesome thanks @billowy-army-68599