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 年前檢視次數 991 次
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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南