We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a8f8de commit 015d122Copy full SHA for 015d122
src/deployments/cdk/src/deployments/defaults/step-1.ts
@@ -234,6 +234,15 @@ function createCentralLogBucket(props: DefaultsStep1Props) {
234
}),
235
);
236
237
+ // Permission to allow checking existence of AWSConfig bucket
238
+ logBucket.addToResourcePolicy(
239
+ new iam.PolicyStatement({
240
+ principals: [new iam.ServicePrincipal('config.amazonaws.com')],
241
+ actions: ['s3:ListBucket'],
242
+ resources: [`${logBucket.bucketArn}`],
243
+ }),
244
+ );
245
+
246
// Allow cross account encrypt access for logArchive bucket
247
logBucket.encryptionKey?.addToResourcePolicy(
248
new iam.PolicyStatement({
0 commit comments