S3 To Glacier Lifecycle configuration - preventing billing shock
Hi Team Is there a way to receive a notification when someone adds a rule in S3 lifecycle configuration to transition objects to Glacier ?
A client configured the rule to reduce S3 costs and had a billing shock due to very large number of small objects. They are trying to prevent such incident in future.
Cloudwatch events gives the option to setup "PutBucketLifecycle" notification.
{ "source": "aws.s3" , "detail-type": "AWS API Call via CloudTrail" , "detail": { "eventSource": "s3.amazonaws.com" , "eventName": "PutBucketLifecycle" } }
Other option at more granular level you can try to setup CW alert on Cloudtrail - https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudwatch-alarms-for-cloudtrail.html#cloudwatch-alarms-for-cloudtrail-s3-bucket-activity
Customer can setup a billing alert as well on overall cost across all the services.
Relevant questions
Move Glacier data to Deep Glacier
asked 3 years agoS3 Bucket Object Versioning & Lifecycle Rules - Applied to Existing Objects or only New?
Accepted Answerasked 5 years agoLifecyle rule not moving to Glazier
asked a year agoS3 To Glacier Lifecycle configuration - preventing billing shock
Accepted Answerasked 2 years agoDoes changing a s3 lifecycle policy change all older objects in an s3 bucket?
asked 2 days agoNew to AWS, my lifecycle rule seems to not be applied (Versioned bucket)
asked a year agoS3 lifecycle rule scan charges
Accepted Answerasked 2 years agoWill we allow transitioning between Glacier and Glacier Deep Archive?
Accepted Answerasked 3 years agos3 Glacier Transition
asked 3 months agos3 lifecycle transition costs
Accepted Answerasked 2 years ago