CloudTrail: Allow external/existing Bucket to be supplied #3651
Labels
@aws-cdk/aws-cloudtrail
Related to AWS CloudTrail
needs-triage
This issue or PR still needs to be triaged.
Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
Currently if you create a CloudTrail
const cloudTrail = new CloudTrail(this, 'MyTrail');
It automaticly creates a bucket , which is also Unecrytped.
const s3bucket = new s3.Bucket(this, 'S3', {encryption: s3.BucketEncryption.UNENCRYPTED});
What is the expected behavior (or behavior of feature suggested)?
An option to pass in an existing Bucket class, this will give greater flexibility and allow user to control policy and encryption.
And change the default bucket creation encryption policy to use
encryption: s3.BucketEncryption.S3_MANAGED
What is the motivation / use case for changing the behavior or adding this feature?
2.7 Ensure CloudTrail logs are encrypted at rest using KMS CMKs
https://d1.awsstatic.com/whitepapers/compliance/AWS_CIS_Foundations_Benchmark.pdf
https://d1.awsstatic.com/whitepapers/architecture/AWS-Security-Pillar.pdf
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered: