-
Notifications
You must be signed in to change notification settings - Fork 402
ASG Event Notifications
This documentation describes the steps to configure auto scaling event 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-notifications
The 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 [email protected] --protocol email
This 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*
See the Amazon documentation for creating a topic
CLI example:
sns-create-topic foo-bar
To receive email notifications a subscriber needs to be registered to the SNS topic.
See the Amazon documentation for subscribing to a topic
CLI example:
sns-subscribe arn:aws:sns:us-east-1:360000000000:Foo --protocol email --endpoint [email protected]
A Netflix Original Production
Tech Blog | Twitter @NetflixOSS | Jobs