Is there a way to not wait for a SNS topic subscri...
# aws
b
Is there a way to not wait for a SNS topic subscription to be confirmed? Or, if does timeout, it doesn't prevent the other stack items from processing
l
Non-email SNS topic subscriptions can auto-confirm, in most cases. https://www.pulumi.com/docs/reference/pkg/aws/sns/topicsubscription/#endpointautoconfirms_nodejs
b
what does auto-confirm do? does that mean the endpoint must respond to the confirmation request? If so, then I may be in a chicken/egg situation.
l
Yes, that's it. Many endpoints are created do that, but if you're writing your own one, then you'd need to add the feature.
I use SNS for sending alarms to Opsgenie, and it autoconfirms
b
Yeah, the API does handle the subscription, the problem, is that the API may not be available, because it hasn't been deployed as part of the stack creation.
l
Ah. Yes. Would it be feasible to move the subscription into the API's stack?
👍 1
b
I don't have a separate stack per api - it's one uber stack
l
So the API just isn't in the stack?