Enabling Amazon EventBridge - Amazon Simple Storage Service (original) (raw)
You can enable Amazon EventBridge using the S3 console, AWS Command Line Interface (AWS CLI), or Amazon S3 REST API.
Note
After you enable EventBridge, it takes around five minutes for the changes to take effect.
To enable EventBridge event delivery in the S3 console.
- Sign in to the AWS Management Console and open the Amazon S3 console athttps://console.aws.amazon.com/s3/.
- In the left navigation pane, choose General purpose buckets.
- In the buckets list, choose the name of the bucket that you want to enable events for.
- Choose Properties.
- Navigate to the Event Notifications section and find the Amazon EventBridge subsection. ChooseEdit.
- Under Send notifications to Amazon EventBridge for all events in this bucket choose On.
The following example creates a bucket notification configuration for bucketamzn-s3-demo-bucket1
with Amazon EventBridge enabled.
aws s3api put-bucket-notification-configuration --bucket amzn-s3-demo-bucket1 --notification-configuration='{ "EventBridgeConfiguration": {} }'
You can programmatically enable Amazon EventBridge on a bucket by calling the Amazon S3 REST API. For more information see, see PutBucketNotificationConfiguration in the_Amazon Simple Storage Service API Reference_.
The following example shows the XML used to create a bucket notification configuration with Amazon EventBridge enabled.
<NotificationConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<EventBridgeConfiguration>
</EventBridgeConfiguration>
</NotificationConfiguration>
Creating EventBridge rules
Once enabled you can create Amazon EventBridge rules for certain tasks. For example, you can send email notifications when an object is created. For a full tutorial, see Tutorial: Send a notification when an Amazon S3 object is created in the_Amazon EventBridge User Guide_.
EventBridge permissions
EventBridge event message structure
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.