Integration: AWS Elastic Beanstalk Notification
You need to set up an Amazon SNS topic for this integration!
How about a shortcut? Set up monitoring for Elastic Beanstalk with the Monitoring Setup Assistant
AWS Elastic Beanstalk can run applications in various languages and frameworks. AWS Elastic Beanstalk Notifications are triggered by notable events, including environment creation errors and changes in environment and instance health. You can get all event types or none; there is no filter feature available in Elastic Beanstalk. That’s why marbot filters them to exclude notifications where the status has changed to Info or Ok.
Unfortunately, Elastic Beanstalk (EB) notifications can not be configured to use an SNS topic using the graphical AWS Management Console. Instead, you have to use the AWS CLI to use the option in the aws:elasticbeanstalk:sns:topics namespace.
The command will add the option value to the
aws:elasticbeanstalk:sns:topicsnamespace without touching the other namespaces. If you have existing options defined in the
aws:elasticbeanstalk:sns:topicsnamespace it will override those values.
Replace the following values in the command below:
- APPLICATION_NAME with the name of the EB application
- ENVIRONMENT_NAME with the name of the EB environment
- TOPIC_ARN with the SNS topic ARN that you created for marbot
And run the command in your terminal to enable SNS notifications:
aws --region us-east-1 elasticbeanstalk update-environment \
When the environment state changes, e.g. because you deploy a new application version, you should receive an alert in Slack: