[go: up one dir, main page]

Skip to content

Commit

Permalink
fix: updated logging bucket ACL settings in CDK to handle log deliver…
Browse files Browse the repository at this point in the history
…y from CloudFront
  • Loading branch information
flamingquaks committed Oct 30, 2024
1 parent e7963d8 commit 3537d0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { type IIdentityPool } from '@aws-cdk/aws-cognito-identitypool-alpha';
import { Stack } from 'aws-cdk-lib';
import { type IUserPool, type IUserPoolClient } from 'aws-cdk-lib/aws-cognito';
import { Bucket, BucketEncryption } from 'aws-cdk-lib/aws-s3';
import { Bucket, BucketAccessControl, BucketEncryption } from 'aws-cdk-lib/aws-s3';
import { type Construct } from 'constructs';
import { API } from './api';
import { Authentication } from './authentication';
Expand Down Expand Up @@ -40,6 +40,7 @@ export class GenAINewsletter extends Stack {
const loggingBucket = new Bucket(this, 'GenAINewsletter-LoggingBucket', {
encryption: BucketEncryption.S3_MANAGED,
enforceSSL: true,
accessControl: BucketAccessControl.LOG_DELIVERY_WRITE,
});

const authentication = new Authentication(this, 'AuthenticationStack');
Expand Down

0 comments on commit 3537d0a

Please sign in to comment.