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 c4556d3 commit 2db94afCopy full SHA for 2db94af
src/deployments/cdk/src/deployments/defaults/step-1.ts
@@ -275,6 +275,21 @@ function createCentralLogBucket(props: DefaultsStep1Props) {
275
}),
276
);
277
278
+ // Allow only https requests
279
+ logBucket.addToResourcePolicy(
280
+ new iam.PolicyStatement({
281
+ actions: ['s3:*'],
282
+ resources: [logBucket.bucketArn, logBucket.arnForObjects('*')],
283
+ principals: [new iam.AnyPrincipal()],
284
+ conditions: {
285
+ Bool: {
286
+ 'aws:SecureTransport': 'false',
287
+ },
288
289
+ effect: iam.Effect.DENY,
290
+ }),
291
+ );
292
+
293
new CfnLogBucketOutput(logAccountStack, 'LogBucketOutput', {
294
bucketArn: logBucket.bucketArn,
295
bucketName: logBucket.bucketName,
0 commit comments