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.

demandé il y a 2 ans1047 vues
1 réponse
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
répondu il y a 2 ans
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions