S3 Notification event name through CloudFormation

0

In the AWS Console, a user can create multiple S3 event notifications. It is possible to set the "event name" for each one that is created. In CloudFormation, however, there is no option to set the name. Some old documentation appears to reference an Id field, but this is no longer supported.

I am looking specifically at the QueueConfigurations section of NotificationConfiguration within AWS::S3::Bucket. Reference: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration.html

The S3 API reference has an Id field for this purpose (https://docs.aws.amazon.com/AmazonS3/latest/API/API_QueueConfiguration.html) but does not appear to be supported in CloudFormation.

Am I missing something? This would be useful for our use case.

已提问 2 年前1045 查看次数
1 回答
0

Hello,

Currently, CloudFormation does not support the EventName/Id property for S3 NotificationConfiguration. There is an existing feature request with the service team for this functionality. While I am unable to comment on if/when this feature may get released, I request you to keep an eye on our What's New, Blog and Release History pages for any new feature announcements.

As a workaround using CloudFormation, consider using a CloudFormation Lambda custom resource. With this custom resource, you provision a Lambda logic to make the PutBucketNotificationConfiguration API call. This way you can still manage all your related resources in a single stack.

AWS
已回答 2 年前
  • Thank you for the answer,Ugochukwu_I.

    DonLammey, Thank you for using re:Post. Let us know if this answers your question. If this solved your issue, please remember to click on the "Accept" button to let the community know that your question is resolved. This helps everyone. Thank you in advance.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则