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.

preguntada hace 2 años991 visualizaciones
1 Respuesta
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
respondido hace 2 años
  • 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.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas