I have defined a lambda trigger on an existing S3 bucket for an Object creation event as described in the docs
However, if the S3 bucket is deleted the trigger is lost and recreating the S3 bucket + a redeploy on serverless doesn’t restore the trigger.
Even though S3 is considered generally a persistent infrastructure piece there may be cases when the buckets need to be recreated. In this case what is the recommended option?
The only way I could work around this was to remove the whole sls deployment and deploy again to restore the trigger.