gio
01/06/2022, 10:27 AMexport default class MyStack extends Stack {
constructor(scope, id, props) {
super(scope, id, props);
const topic = new Topic(this, "Topic");
this.addOutputs({
TopicArn: { value: topic.snsTopic.topicArn, exportName: "MyTopicArn" },
});
}
}
Mayowa
01/06/2022, 11:36 PMcdk.Fn.importValue
from the cdk like it's done here and pass in the exportName you specified