Skip to content

Instantly share code, notes, and snippets.

@jeffski
Last active June 23, 2017 05:01
Show Gist options
  • Save jeffski/2ec117500a4ade89dd4d3fd123d8945c to your computer and use it in GitHub Desktop.
Save jeffski/2ec117500a4ade89dd4d3fd123d8945c to your computer and use it in GitHub Desktop.
Simple IAM policy to allow a user to upload to an S3 bucket, locked down to their specific Cognito Identity
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::UserUploads/${cognito-identity.amazonaws.com:sub}/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment