https://pulumi.com logo
Title
w

white-beach-28459

09/12/2022, 4:55 PM
Any known issues with adding S3 bucket notifications? I already have 3 notifications setup for a S3 bucket and as soon as this code is executed, it removes all of them and adds only that one. It's one s3.bucketNotification object per bucket then? or?
const crawler_bucket_notification = new aws.s3.BucketNotification("crawler_bucket_notification-" + name, {
            bucket: "data-lake-" + config.get("env")  + "-" + name,
            queues: [{
                events: [
                    "s3:ObjectRemoved:*",
                    "s3:ObjectCreated:*",
                ],
                filterPrefix: name + "/",
                id: "data-lake-" + config.get("env") + "-" + name,
                queueArn: crawler_sqs_queue.arn,
            }],
            eventbridge: false
        });