Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix: explicitly set log bucket object ownership (#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxkane authored Apr 19, 2023
1 parent cb2ce46 commit 9227c06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { RemovalPolicy, Stack, StackProps, Duration, CfnParameter, CfnOutput, Cf
import { GatewayVpcEndpointAwsService, Vpc, FlowLogDestination, SubnetType, IVpc, SecurityGroup } from 'aws-cdk-lib/aws-ec2';
import { Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam';
import { CfnDBInstance } from 'aws-cdk-lib/aws-neptune';
import { Bucket, BucketEncryption, IBucket } from 'aws-cdk-lib/aws-s3';
import { Bucket, BucketEncryption, IBucket, ObjectOwnership } from 'aws-cdk-lib/aws-s3';
import { Queue, QueueEncryption } from 'aws-cdk-lib/aws-sqs';
import { Construct } from 'constructs';
import { TransactionDashboardStack } from './dashboard-stack';
Expand All @@ -19,6 +19,7 @@ export class FraudDetectionStack extends Stack {
encryption: BucketEncryption.S3_MANAGED,
removalPolicy: RemovalPolicy.RETAIN,
serverAccessLogsPrefix: 'accessLogBucketAccessLog',
objectOwnership: ObjectOwnership.OBJECT_WRITER,
});

const vpcId = this.node.tryGetContext('vpcId');
Expand Down

0 comments on commit 9227c06

Please sign in to comment.