Join Slack
Powered by
How do we use existing bucket and add event handle...
# help
p
Pavan Kumar
06/16/2022, 3:20 AM
How do we use existing bucket and add event handler to it. (I don't see
fromBucketArn
in
sst.Bucket
ts type definition)
f
Frank
06/16/2022, 3:30 AM
Hey
@Pavan Kumar
, the last I checked, you can’t add notifications to existing buckets due to CloudFormation limitation.
Frank
06/16/2022, 3:30 AM
Most ppl work around this by creating a custom resource, and call the AWS SDK to create the notification.
p
Pavan Kumar
06/16/2022, 7:35 AM
Any example code out there which does this?
h
hafiz siddiq
06/16/2022, 11:36 AM
@Frank
can we do it manually from aws? instead of using a custom resource.
f
Frank
06/16/2022, 2:11 PM
@Pavan Kumar
this might help
https://stackoverflow.com/a/58757734
Frank
06/16/2022, 2:12 PM
@hafiz siddiq
yup u can.
2
Views
Open in Slack
Previous
Next