S3 CloudWatch Metrics
You can use the AWS Management Console to enable the generation of 1-minute CloudWatch metrics for your S3 bucket or configure filters for the metrics using a prefix or object tag. You may also call the S3 PUT Bucket Metrics API.
Storage metrics will be available in CloudWatch within 15 minutes of being enabled.
You can use CloudWatch to set thresholds on any of the storage metrics counts, timers, or rates and fire an action when the threshold is breached.
S3 CloudWatch Metrics are priced as custom metrics for Amazon CloudWatch.
S3 Event Notification
S3 event notifications enable you to run workflows, send alerts, or perform other actions in response to changes in your objects stored in S3.
S3 event notifications can be sent in response to actions in Amazon S3 like PUT, POST, COPY, or DELETE.
Can set up event notifications based on object name prefixes and suffixes.
Notification messages can be sent through either SNS, SQS, or directly to AWS Lambda.
Supported Events:
-
A new object created even
-
Amazon S3 supports multiple APIs to create objects.
-
You can request notification when only a specific API is used (e.g., s3:ObjectCreated:Put) or you can use a wildcard (e.g., s3:ObjectCreated:*) to request notification when an object is created regardless of the API used.
-
-
An object removal event
-
Amazon S3 supports deletes of versioned and unversioned objects. For information about object versioning, see Object Versioning and Using Versioning.
-
You can request notification when an object is deleted or a versioned object is permanently deleted by using the s3:ObjectRemoved:Delete event type. Or you can request notification when a delete marker is created for a versioned object by using s3:ObjectRemoved:DeleteMarkerCreated. You can also use a wildcard s3:ObjectRemoved:* to request notification anytime an object is deleted. For information about deleting versioned objects, see Deleting Object Versions.
-
-
A Reduced Redundancy Storage (RRS) object lost event
-
Amazon S3 sends a notification message when it detects that an object of the RRS storage class has been lost.
-
Pricing:
There are no additional charges from Amazon S3 for event notifications. You pay only for use of any resources like SNS, SQS, Lambda etc.
- heartin's blog
- Log in or register to post comments
Recent comments