https://pulumi.com logo
#aws
Title
# aws
b

best-lifeguard-91445

02/04/2021, 6:44 PM
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

little-cartoon-10569

02/04/2021, 7:41 PM
Non-email SNS topic subscriptions can auto-confirm, in most cases. https://www.pulumi.com/docs/reference/pkg/aws/sns/topicsubscription/#endpointautoconfirms_nodejs
b

best-lifeguard-91445

02/04/2021, 8:04 PM
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

little-cartoon-10569

02/04/2021, 8:05 PM
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

best-lifeguard-91445

02/04/2021, 8:06 PM
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

little-cartoon-10569

02/04/2021, 8:07 PM
Ah. Yes. Would it be feasible to move the subscription into the API's stack?
👍 1
b

best-lifeguard-91445

02/04/2021, 8:12 PM
I don't have a separate stack per api - it's one uber stack
l

little-cartoon-10569

02/04/2021, 8:21 PM
So the API just isn't in the stack?