Skip to content

Commit c95313f

Browse files
committed
fix policy
1 parent d590dd6 commit c95313f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/cdk/resources/RuntimePolicies.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,16 @@ 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-
]
135+
resources: [props.slackBotStateTableKmsKeyArn]
138136
})
139137

140138
const slackBotDescribeCfStacks = new PolicyStatement({
141139
actions: [
142140
"cloudformation:DescribeStacks"
143141
],
144-
resources: [props.slackBotStateTableKmsKeyArn]
142+
resources: [
143+
`arn:aws:cloudformation:eu-west-2:${props.account}:stack/epsam-pr-*`
144+
]
145145
})
146146

147147
this.slackBotPolicy = new ManagedPolicy(this, "SlackBotPolicy", {

0 commit comments

Comments
 (0)