(s3): allow adding BucketMetrics to unowned buckets #15838
Labels
@aws-cdk/aws-s3
Related to Amazon S3
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p1
BucketMetrics allow one to have per prefix cloudwatch metrics on buckets. The IBucket interface does not allow adding new ones. The IBucket interface is however the only way to get to an existing bucket within the CDK.
Use Case
We are having a data architecture where multiple processes are writing to a central S3 bucket (think data-lake of sorts). We want to be able to build cloud-watch dashboards/alarms on the metrics of the different prefixes being written to. The bucket already exists and can not be made CDK managed right now. Whenever we deploy a new stack that writes to a new prefix in the bucket, we would like to be able to define a metrics filter, that we can see the metrics in cloud-watch. The console UI allows me to do that, but that is not desirable, since we are constantly adding new processes that write to new prefixes.
I believe this is similar to #2004 just with BucketMetrics.
Proposed Solution
I don't know how do do that right now.
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: