Skip to content

Instantly share code, notes, and snippets.

@prestomation
Created February 24, 2017 20:34
Show Gist options
  • Save prestomation/2e62c67357b665d7a9ca6d10cce5c20c to your computer and use it in GitHub Desktop.
Save prestomation/2e62c67357b665d7a9ca6d10cce5c20c to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"dynamodb:GetItem",
"dynamodb:BatchGetItem",
"dynamodb:Query",
"dynamodb:PutItem",
"dynamodb:UpdateItem",
"dynamodb:DeleteItem",
"dynamodb:BatchWriteItem"
],
"Resource": [
"arn:aws:dynamodb:us-west-2:123456789012:table/MyTable"
],
"Condition": {
"ForAllValues:StringEquals": {
"dynamodb:LeadingKeys": ["${cognito-identity.amazonaws.com:sub}"]
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment