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