================================================================ 6.1. S3バケットへの通知設定(SNS)の追加 ================================================================ .. include:: ./_defines-s3.txt .. include:: ./_defines-sns-mailenv.txt .. .. |AWS_DEFAULT_PROFILE| replace:: .. .. |AWS_DEFAULT_REGION| replace:: ap-northeast-1 .. .. |SNS_TOPIC_NAME| replace:: .. .. |S3_BUCKET_NAME| replace:: .. |S3_NOTIFICATION_EVENT| replace:: s3:ObjectCreated:* .. |S3_NOTIFICATION_ID_PREFIX| replace:: s3:ObjectCreated-All ---------------------------------------------------------------- 作業の目的 [why] ---------------------------------------------------------------- S3バケット"\ |S3_BUCKET_NAME|\ "に通知設定を追加する。 .. .. include:: ../../../resource-catalog/task-s3/s3-bucket_notification-update/_display-condition-common-s3-bucket_notification-update.txt .. include:: ../../../resource-catalog/task-s3/s3-bucket_notification-update/s3-bucket_notification-topic-update.txt 参考: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 設定が成功すると以下の通知がSNS経由で届きます。 :From: no-reply@sns.amazonaws.com :Subject: Amazon S3 Notification 本文(例): .. parsed-literal:: {"Service":"Amazon S3","Event":"s3:TestEvent","Time":"\ |today|\ T01:23:45.678Z","Bucket":"\ |S3_BUCKET_NAME|\ ","RequestId":"xxxxxxxxxxxxxxxx","HostId":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx="} ---------------------------------------------------------------- 完了 ----------------------------------------------------------------