Skip to content

Commit 67740ae

Browse files
authored
update lambda role permissions (#971)
1 parent 01b42ab commit 67740ae

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/deployments/cdk/src/deployments/iam/sns-subscriber-lambda-role.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ function createRole(accountStack: AccountStack) {
8383
}),
8484
);
8585

86+
role.addToPrincipalPolicy(
87+
new iam.PolicyStatement({
88+
actions: ['kms:Encrypt', 'kms:Decrypt', 'kms:GenerateDataKey'],
89+
resources: ['*'],
90+
}),
91+
);
92+
8693
new CfnIamRoleOutput(accountStack, `SnsSubscriberLambdaOutput`, {
8794
roleName: role.roleName,
8895
roleArn: role.roleArn,

0 commit comments

Comments
 (0)