41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
|
{
|
||
|
"Version": "2012-10-17",
|
||
|
"Statement": [
|
||
|
{
|
||
|
"Sid": "ReadWriteTable",
|
||
|
"Effect": "Allow",
|
||
|
"Action": [
|
||
|
"dynamodb:BatchGetItem",
|
||
|
"dynamodb:GetItem",
|
||
|
"dynamodb:Query",
|
||
|
"dynamodb:Scan",
|
||
|
"dynamodb:BatchWriteItem",
|
||
|
"dynamodb:PutItem",
|
||
|
"dynamodb:UpdateItem"
|
||
|
],
|
||
|
"Resource": "arn:aws:dynamodb:*:*:table/SampleTable"
|
||
|
},
|
||
|
{
|
||
|
"Sid": "GetStreamRecords",
|
||
|
"Effect": "Allow",
|
||
|
"Action": "dynamodb:GetRecords",
|
||
|
"Resource": "arn:aws:dynamodb:*:*:table/SampleTable/stream/* "
|
||
|
},
|
||
|
{
|
||
|
"Sid": "WriteLogStreamsAndGroups",
|
||
|
"Effect": "Allow",
|
||
|
"Action": [
|
||
|
"logs:CreateLogStream",
|
||
|
"logs:PutLogEvents"
|
||
|
],
|
||
|
"Resource": "*"
|
||
|
},
|
||
|
{
|
||
|
"Sid": "CreateLogGroup",
|
||
|
"Effect": "Allow",
|
||
|
"Action": "logs:CreateLogGroup",
|
||
|
"Resource": "*"
|
||
|
}
|
||
|
]
|
||
|
}
|