AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Configuring Notifications with AWS Elastic Beanstalk

AWS Elastic Beanstalk can use the Amazon Simple Notification Service (Amazon SNS) to notify you of important events affecting your application.

AWS Management Console

To enable Amazon SNS notifications, simply enter your email address in the Email Address box. To disable Amazon SNS notifications, remove your email address from the box.

AWS Elastic Beanstalk Notifications Window

CLI

To edit an application's environment settings

  • Update an application's environment settings.

    PROMPT> elastic-beanstalk-update-environment -e MySampleAppEnv -f "Options.txt"

Options.txt

[
  {"Namespace": "aws:elasticbeanstalk:sns:topics",
   "OptionName": "Notification Endpoint",
   "Value": "someone@example.com"}
]

API

To edit an application's environment settings

  • Call UpdateEnvironment with the following parameters:

    • EnvironmentName = SampleAppEnv

    • OptionSettings.member.1.Namespace = aws:elasticbeanstalk:sns:topics

    • OptionSettings.member.1.OptionName = Notification Endpoint

    • OptionSettings.member.1.Value = someone@example.com

    Example

    https://elasticbeanstalk.us-east-1.amazon.com/?EnvironmentName=SampleAppEnv
    &OptionSettings.member.1.Namespace=aws%3Aelasticbeanstalk%3Asns%3Atopics
    &OptionSettings.member.1.OptionName=Notification%20Endpoint
    &OptionSettings.member.1.Value=janedoe%40example.com
    &Operation=UpdateEnvironment
    &AuthParams