Skip to content

Commit 2de87f2

Browse files
committed
Add missing permissions to read and write to table
1 parent 155114c commit 2de87f2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/cdk/resources/IamResources.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,18 +154,23 @@ export class IamResources extends Construct {
154154
actions: [
155155
"dynamodb:GetItem",
156156
"dynamodb:PutItem",
157-
"dynamodb:UpdateItem",
158157
"dynamodb:DeleteItem",
159158
"dynamodb:Query",
160-
"dynamodb:Scan"
159+
"dynamodb:Scan",
160+
"dynamodb:BatchGetItem",
161+
"dynamodb:BatchWriteItem",
162+
"dynamodb:UpdateItem"
161163
],
162164
resources: [props.slackBotStateTableArn]
163165
})
164166

165167
const slackBotKmsPolicy = new PolicyStatement({
166168
actions: [
169+
"kms:Encrypt",
167170
"kms:Decrypt",
168-
"kms:GenerateDataKey"
171+
"kms:ReEncrypt*",
172+
"kms:GenerateDataKey*",
173+
"kms:DescribeKey"
169174
],
170175
resources: [props.slackBotStateTableKmsKeyArn]
171176
})

0 commit comments

Comments
 (0)