{{ }} Substitute variables
Adjust the variable values according to your preference.
Policy Code
Referenced from: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_dynamodb_specific-table.html
1{
2 "Version": "2012-10-17",
3 "Statement": [
4 {
5 "Sid": "ListAndDescribe",
6 "Effect": "Allow",
7 "Action": [
8 "dynamodb:List*",
9 "dynamodb:DescribeReservedCapacity*",
10 "dynamodb:DescribeLimits",
11 "dynamodb:DescribeTimeToLive"
12 ],
13 "Resource": "*"
14 },
15 {
16 "Sid": "SpecificTable",
17 "Effect": "Allow",
18 "Action": [
19 "dynamodb:BatchGet*",
20 "dynamodb:DescribeStream",
21 "dynamodb:DescribeTable",
22 "dynamodb:Get*",
23 "dynamodb:Query",
24 "dynamodb:Scan",
25 "dynamodb:BatchWrite*",
26 "dynamodb:CreateTable",
27 "dynamodb:Delete*",
28 "dynamodb:Update*",
29 "dynamodb:PutItem"
30 ],
31 "Resource": "arn:aws:dynamodb:*:*:table/{{tableName}}"
32 }
33 ]
34}
DOC
Replace {{tableName}} with the name of your DynamoDB table.