python --version Python 2.7.14
pip, AWS Cliのインストール
easy_install pip pip install awscli
IAMユーザで設定しよう
aws configure
トピックの作成
aws sns create-topic --name myAlertTopic
{
"TopicArn": "arn:aws:sns:ap-northeast-1:840155334575:myAlertTopic"
}
サブスクライブ作成
aws sns subscribe --topic-arn arn:aws:sns:ap-northeast-1:840155334575:myAlertTopic --protocol email --notification-endpoint hogeuser@example.com
{
"SubscriptionArn": "pending confirmation"
}
パブリッシュ作成
aws sns publish --topic-arn "arn:aws:sns:ap-northeast-1:840155334575:myAlertTopic" --message "TEST daYO!"


