By using AWS re:Post, you agree to the Terms of Use
/S3 To Glacier Lifecycle configuration - preventing billing shock/

S3 To Glacier Lifecycle configuration - preventing billing shock

0

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.

1 Answers
0
Accepted Answer

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.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions