Skip to content

Commit 00ab481

Browse files
committed
permissions for cloudformation
1 parent 8b5875c commit 00ab481

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/cdk/resources/RuntimePolicies.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,15 @@ export class RuntimePolicies extends Construct {
132132
"kms:GenerateDataKey*",
133133
"kms:DescribeKey"
134134
],
135+
resources: [
136+
`arn:aws:cloudformation:eu-west-2:${props.account}:stack/epsam-pr-*`
137+
]
138+
})
139+
140+
const slackBotDescribeCfStacks = new PolicyStatement({
141+
actions: [
142+
"cloudformation:DescribeStacks"
143+
],
135144
resources: [props.slackBotStateTableKmsKeyArn]
136145
})
137146

@@ -145,7 +154,8 @@ export class RuntimePolicies extends Construct {
145154
slackBotLambdaPolicy,
146155
slackBotGuardrailPolicy,
147156
slackBotDynamoDbPolicy,
148-
slackBotKmsPolicy
157+
slackBotKmsPolicy,
158+
slackBotDescribeCfStacks
149159
]
150160
})
151161

0 commit comments

Comments
 (0)