From 94be3e08f388abfa42640c8aacde378392b8b59e Mon Sep 17 00:00:00 2001 From: Dominik Schubert Date: Thu, 12 Oct 2023 10:36:21 +0200 Subject: [PATCH] fix missing support for eventbridge notifications in AWS::S3::Bucket --- localstack/services/cloudformation/models/s3.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/localstack/services/cloudformation/models/s3.py b/localstack/services/cloudformation/models/s3.py index 4763ae6d3134d..eaa3a4740731d 100644 --- a/localstack/services/cloudformation/models/s3.py +++ b/localstack/services/cloudformation/models/s3.py @@ -180,6 +180,9 @@ def s3_bucket_notification_config( "TopicConfigurations": topic_configs, }, } + if notif_config.get("EventBridgeConfiguration", {}).get("EventBridgeEnabled"): + result["NotificationConfiguration"]["EventBridgeConfiguration"] = {} + return result def _handle_result(