How can I automatically confirm my subscription to SNS notifications

I regularly deploy and unwind a resilient beanstalk environment in which my email address is configured as a notification address. Is there a way by which I can automatically confirm the subscription to all created SNS topics instead of manually clicking the link in the email each time (and skipping a few)?

+7
amazon-sns elastic-beanstalk
source share
2 answers

It seems you are programmatically creating an environment. You can automatically confirm subscriptions using the SNS confirmation confirmation API

http://docs.aws.amazon.com/sns/latest/APIReference/API_ConfirmSubscription.html

Another option is to create your own theme and subscribe to it. Then reuse the theme for all your environments using the ARN Theme Notification option, rather than providing an email address when starting a new beanstalk environment. Thus, you subscribe to the topic once, and then forget about it.

0
source share

I do not know how to do that. The easiest way I can think of is to not subscribe to an email on this topic, subscribe to an SQS queue, and then separately read the process from that SQS queue and send the email to your team email address. It is not very, but it will work, and you will not lose any messages.

0
source share

All Articles