Skip to content

Instantly share code, notes, and snippets.

@jacoyutorius
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save jacoyutorius/dde4fe02846c3d84cdd0 to your computer and use it in GitHub Desktop.

Select an option

Save jacoyutorius/dde4fe02846c3d84cdd0 to your computer and use it in GitHub Desktop.
Amazon S3 Event Notificationsを設定してみる ref: http://qiita.com/jacoyutorius/items/fb10b2d2134d9d37fdc2
"Condition": {
"ArnLike": {
"aws:SourceArn": "arn:aws:s3:*:*:s3-event-test"
}
{
"Type" : "Notification",
"MessageId" : "5230ec36-054e-5b4a-9be2-a0e9c65627ab",
"TopicArn" : "arn:aws:sns:ap-northeast-1~:s3-event-topic",
"Subject" : "Amazon S3 Notification",
"Message" : "{\"Records\":[{\"eventVersion\":\"2.0\",\"eventSource\":\"aws:s3\",\"awsRegion\":\"ap-northeast-1\",\"eventTime\":\"2014-11-14T08:44:08.186Z\",\"eventName\":\"ObjectCreated:Put\",\"userIdentity\":{\"principalId\":\"ACXAST529TQXX\"},\"requestParameters\":{\"sourceIPAddress\":\"10.115.144.24\"},\"responseElements\":{\"x-amz-request-id\":\"90BC3EA8CFE5595C\",\"x-amz-id-2\":\"UFr7b4eZQmPVauENR6Zb7zB40GrxhxMVUHLqhzq6sX3fNybfo/DV23yCNE0xEuQw\"},\"s3\":{\"s3SchemaVersion\":\"1.0\",\"configurationId\":\"upload-event\",\"bucket\":{\"name\":\"s3-event-test\",\"ownerIdentity\":{\"principalId\":\"ACXAST529TQXX\"},\"arn\":\"arn:aws:s3:::s3-event-test\"},\"object\":{\"key\":\"car.txt\",\"size\":120,\"eTag\":\"782a329be052f76a716f238ef7c69b52\"}}}]}",
(省略)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment