Skip to content

Setting Up Notifications for Events

gorzell edited this page Jan 12, 2012 · 5 revisions

Overview

This documentation describes the steps to configure auto scale notifications.

SNS

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 foo@netflix.com --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*

For more information on setting up auto scale see Configuring: Triggers and Rules

Commandline

Amazon documentation here CLI example below,

sns-create-topic foo-bar

Email

To receive email notifications a subscriber needs to be registered to the topic.

Commandline

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}

Clone this wiki locally