Skip to content

Commit b869c22

Browse files
authored
fixed policy synth (#1168)
* fixed policy synth * fixed prettier
1 parent 30e9be4 commit b869c22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/cdk-accelerator/src/core/secrets-container.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ export class SecretsContainer extends Construct {
108108
}
109109

110110
protected prep(): void {
111+
if (this.principals.length === 0) {
112+
return;
113+
}
114+
111115
this.encryptionKey.addToResourcePolicy(
112116
new iam.PolicyStatement({
113117
actions: ['kms:Decrypt'],

0 commit comments

Comments
 (0)