< Back

Integration: AWS Elastic Beanstalk Notification

You need to set up an Amazon SNS topic for this integration!

We recommend a newer way to receive events from Elastic Beanstalk via Amazon EventBridge published under source aws.elasticbeanstalk.

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.

Monitoring your Elastic Beanstalk environment

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:topics namespace without touching the other namespaces. If you have existing options defined in the aws:elasticbeanstalk:sns:topics namespace 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 \
--application-name APPLICATION_NAME \
--environment-name ENVIRONMENT_NAME \
--option-settings Namespace=aws:elasticbeanstalk:sns:topics,OptionName="Notification Topic ARN",Value=TOPIC_ARN

Sample Alert

When the environment state changes, e.g. because you deploy a new application version, you should receive an alert in Slack:

Elastic Beanstalk Alert

More help needed? Or want to share feedback?

If you experience any issues, let us know.

E-mail icon
marbot teaser

Chatbot for AWS Monitoring

Configure monitoring for Amazon Web Services: CloudWatch, EC2, RDS, EB, Lambda, and more. Receive and manage alerts via Slack. Solve incidents as a team.

Add to Slack
Microsoft Teams
Add to Teams