https://pulumi.com logo
#general
Title
# general
m

mysterious-glass-98830

06/23/2022, 5:27 PM
Hi community, I am trying to activate Amazon EventBridge notifications to a s3 cube with pulumi, but it does not activate this property, has anyone already faced this problem?
b

billowy-army-68599

06/23/2022, 5:28 PM
what are you trying?
m

mysterious-glass-98830

06/23/2022, 5:29 PM
This is the pulumi code
Copy code
const bucket = new aws.s3.Bucket("test001", {
    acl: "private",
    tags: {
        Environment: "Dev",
        Name: "My bucket",
    },
});

const test = new aws.s3.BucketNotification("bucketNotification", {
    bucket: bucket.id,  
    eventbridge : true,
})
But it does not activate EventBridge in the bucket.
b

billowy-army-68599

06/23/2022, 5:35 PM
i'm trying this now, standby
@mysterious-glass-98830 this works for me? I did notice in your code you have a gap between
eventbridge
and
:
is that expected?
are you sure you're looking at the right bucket?
m

mysterious-glass-98830

06/23/2022, 5:41 PM
Sorry I missed a space, but without the space it does not activate the eventbridge, if that is what I expect.
Does the code I shared work for you?
b

billowy-army-68599

06/23/2022, 5:43 PM
yep, copied and pasted exactly
m

mysterious-glass-98830

06/23/2022, 5:45 PM
ok let me perform another test I have a feeling it might be account permissions
b

billowy-army-68599

06/23/2022, 5:47 PM
if you export the bucket name:
Copy code
export const bucketName = bucket.bucket
and then do:
Copy code
aws s3api get-bucket-notification-configuration --bucket $(pulumi stack output bucketName)
What gets returned?
m

mysterious-glass-98830

07/22/2022, 10:18 PM
Hello community, I came by poop to inform that it was solved by updating the pulumi plugin for aws.
3 Views