Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Created May 17, 2016 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wokamoto/f8ccf7e92459c5194fdfbb95b8ed9b27 to your computer and use it in GitHub Desktop.
Save wokamoto/f8ccf7e92459c5194fdfbb95b8ed9b27 to your computer and use it in GitHub Desktop.
ses-s3-bucket-policy.json
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "GiveSESPermissionToWriteEmail",
"Effect": "Allow",
"Principal": {
"Service": [
"ses.amazonaws.com"
]
},
"Action": [
"s3:PutObject"
],
"Resource": "arn:aws:s3:::BUCKET-NAME/*",
"Condition": {
"StringEquals": {
"aws:Referer": "ACCOUNT-ID-WITHOUT-HYPHENS"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment