Skip to content

Instantly share code, notes, and snippets.

@jmathai
Created April 24, 2012 00:52
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 jmathai/2475097 to your computer and use it in GitHub Desktop.
Save jmathai/2475097 to your computer and use it in GitHub Desktop.
Sample AWS IAM for OpenPhoto
# use the s3:* and/or sdb:* depending on which you'll need
# sdb domain prefix can be any string.
# s3 bucket names are globally unique
# your account id should not have any spaces or dashes
{
"Statement": [
{
"Sid": "StmtNNNNNNNNNNNNN",
"Action": "s3:*",
"Effect": "Allow",
"Resource": "arn:aws:s3:::{your_bucket_name}"
},
{
"Sid": "StmtMMMMMMMMMMMMM",
"Action": "sdb:*",
"Effect": "Allow",
"Resource": "arn:aws:sdb:*:{your_account_id}:domain/{an_sdb_domain_prefix}*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment