Skip to content

Instantly share code, notes, and snippets.

@franzwong
Last active January 24, 2019 10:16
Show Gist options
  • Save franzwong/024cb8910c94919881df26933ed6a2e9 to your computer and use it in GitHub Desktop.
Save franzwong/024cb8910c94919881df26933ed6a2e9 to your computer and use it in GitHub Desktop.
HowTo: Grant IAM role to Cognito authenticated user
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::<S3 bucket>/${cognito-identity.amazonaws.com:sub}",
"arn:aws:s3:::<S3 bucket>/${cognito-identity.amazonaws.com:sub}/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment