Skip to content

Commit

Permalink
adding new ObjectOwnership rule needed for Amazon S3
Browse files Browse the repository at this point in the history
  • Loading branch information
eggoynes committed Apr 13, 2023
1 parent e124946 commit c61714d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions source/constructs/lib/live-streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,9 @@ export class LiveStreaming extends cdk.Stack {
id: 'AwsSolutions-CFR2',
reason: 'Use case does not warrant CloudFront integration with AWS WAF'
}, {
id: 'AwsSolutions-CFR3', //same as cfn_nag rule W70
reason: 'S3 update causing deploy fail when bucket makes any sort of ACL. With this error cannot have ACLs set with ObjectOwnerships BucketOwnerEnforced setting'
},{
id: 'AwsSolutions-CFR3',
reason: 'S3 changing ownership have to remove since it is causing solution not to deploy'
}, {
id: 'AwsSolutions-CFR4', //same as cfn_nag rule W70
reason: 'CloudFront automatically sets the security policy to TLSv1 when the distribution uses the CloudFront domain name'
}, {
Expand Down Expand Up @@ -737,13 +737,16 @@ export class LiveStreaming extends cdk.Stack {
]
},
bucketProps: {
versioned: false
versioned: false,
objectOwnership: s3.ObjectOwnership.OBJECT_WRITER
},
loggingBucketProps: {
versioned: false
versioned: false,
objectOwnership: s3.ObjectOwnership.OBJECT_WRITER
},
cloudFrontLoggingBucketProps: {
versioned: false
versioned: false,
objectOwnership: s3.ObjectOwnership.OBJECT_WRITER
},
insertHttpSecurityHeaders: false
});
Expand Down

0 comments on commit c61714d

Please sign in to comment.