nice-airport-15607
06/16/2020, 8:55 PMconst sometopic = pulumi.output(aws.sns.getTopic({ name: 'sometopic-3ce3de0' }, { async: true }))
const topicArn = sometopic.apply(o => o.arn)
and also:
const someTopic = aws.sns.Topic.get('sometopic', '3ce3de0')
const topicArn = someTopic.apply(stack => pulumi.output(stack.arn))
but its not giving me the results I’m expecting of
export declare type ARN = string;
its showing me crap like
topicArn OutputImpl {
__pulumiOutput: true,
isKnown: Promise { <pending> },
isSecret: Promise { false },
resources: [Function],
allResources: [Function],
promise: [Function],
toString: [Function],
toJSON: [Function] }
faint-table-42725
06/16/2020, 10:20 PMconst sometopic = pulumi.output(aws.sns.getTopic({ name: 'sometopic' });
const subscription = new aws.sns.TopicSubscription("subscription", {
topic: sometopic.arn
// ...
});
Anything you’re getting stuck on?nice-airport-15607
06/16/2020, 10:54 PM