This message was deleted.
# general
s
This message was deleted.
m
Can you declare the TopicSubscription with Pulumi, and pass the ARN to the microservice as an environment variable? Or are you saying you need your microservice to dynamically subscribe to topics?
b
That would work somewhat, but then you don't have any guarantee that your service is able to handle that subscription (like if for instance you revert to an older version)
Maybe my service can export a ComponentResource that I can import from my "main" pulumi, 🤔
m
You could export the topic ARN and use StackReference to get the Output value.
👀 1
Or you can tag your topic, and use the AWS SDK to look-up the topic by tag