aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.57k stars 3.88k forks source link

[aws-ec2] VPC FlowLogs to S3 Bucket with Subfolder #10778

Closed relm923 closed 3 years ago

relm923 commented 3 years ago

Add optional support for setting subfolders when declaring S3 bucket as destination for VPC Flow logs

Use Case

AWS Documentation

Setting subfolders allows buckets to be reused for multiple purposes

Proposed Solution

Add optional subfolder argument to FlowLogDestination.toS3() to allow for defining bucket prefix.

Other

If LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. You can also specify a subfolder in the bucket. To specify a subfolder in the bucket, use the following ARN format: bucket_ARN/subfolder_name/. For example, to specify a subfolder named my-logs in a bucket named my-bucket, use the following ARN: arn:aws:s3:::my-bucket/my-logs/. You cannot use AWSLogs as a subfolder name. This is a reserved term.

This is a :rocket: Feature Request

github-actions[bot] commented 3 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.