Last active
June 23, 2017 05:01
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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