-
Notifications
You must be signed in to change notification settings - Fork 83
Setting Up Notifications for Events
This documentation describes the steps to configure auto scale notifications.
First, a topic needs to be created to receive the auto scale events. This needs to be done before the auto scale alarms have been defined.
Example :
sns-create-topic web-notificationsThe output should be the topic name For example
arn:aws:sns:us-east-1:111111111:web-notifications
Next you need to subscribe to the topic. For example
sns-subscribe arn:aws:sns:us-east-1:111111111:web-notifications --endpoint foo@netflix.com --protocol emailThis should output: Subscription request received.
Now when you create your scaling policy you need to add the topic as the final parameter to the scale-up or scale-down call
For example:
./scale-up.sh web 15 "NFLX/Foo" "FallbackThrottler_numCurrentRequests" 14 60 5 1800 *arn:aws:sns:us-east-1:111111111:web-notifications*For more information on setting up auto scale see Configuring: Triggers and Rules
Amazon documentation here CLI example below,
sns-create-topic foo-barTo receive email notifications a subscriber needs to be registered to the topic.
Amazon documentation [here|http://docs.amazonwebservices.com/sns/latest/cli/sns_subscribe.html]. CLI example below,
{code}
sns-subscribe arn:aws:sns:us-east-1:365928882516:Foo —protocol email —endpoint someDl@netflix.com
{code}