AWS::S3::Bucket NotificationConfiguration - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::S3::Bucket NotificationConfiguration

Describes the notification configuration for an Amazon S3 bucket.


If you create the target resource and related permissions in the same template, you might have a circular dependency.

For example, you might use the AWS::Lambda::Permission resource to grant the bucket permission to invoke an Amazon Lambda function. However, Amazon CloudFormation can't create the bucket until the bucket has permission to invoke the function (Amazon CloudFormation checks whether the bucket can invoke the function). If you're using Refs to pass the bucket name, this leads to a circular dependency.

To avoid this dependency, you can create all resources without specifying the notification configuration. Then, update the stack with a notification configuration.

For more information on permissions, see AWS::Lambda::Permission and Granting Permissions to Publish Event Notification Messages to a Destination.


To declare this entity in your Amazon CloudFormation template, use the following syntax:



Enables delivery of events to Amazon EventBridge.

Required: No

Type: EventBridgeConfiguration

Update requires: No interruption


Describes the Amazon Lambda functions to invoke and the events for which to invoke them.

Required: No

Type: Array of LambdaConfiguration

Update requires: No interruption


The Amazon Simple Queue Service queues to publish messages to and the events for which to publish messages.

Required: No

Type: Array of QueueConfiguration

Update requires: No interruption


The topic to which notifications are sent and the events for which notifications are generated.

Required: No

Type: Array of TopicConfiguration

Update requires: No interruption


Receive S3 bucket notifications to an SNS topic

The following example template shows an Amazon S3 bucket with a notification configuration that sends an event to the specified SNS topic when S3 has lost all replicas of an object.


{ "AWSTemplateFormatVersion": "2010-09-09", "Resources": { "S3Bucket": { "Type": "AWS::S3::Bucket", "Properties": { "AccessControl": "Private", "NotificationConfiguration": { "TopicConfigurations": [ { "Topic": "arn:aws:sns:us-east-1:123456789012:TestTopic", "Event": "s3:ReducedRedundancyLostObject" } ] } } } }, "Outputs": { "BucketName": { "Value": { "Ref": "S3Bucket" }, "Description": "Name of the sample Amazon S3 bucket with a notification configuration." } } }


AWSTemplateFormatVersion: 2010-09-09 Resources: S3Bucket: Type: 'AWS::S3::Bucket' Properties: AccessControl: Private NotificationConfiguration: TopicConfigurations: - Topic: 'arn:aws:sns:us-east-1:123456789012:TestTopic' Event: 's3:ReducedRedundancyLostObject' Outputs: BucketName: Value: !Ref S3Bucket Description: Name of the sample Amazon S3 bucket with a notification configuration.