Aws-cli: How to delete an event of s3

Created on 13 Jul 2015  路  5Comments  路  Source: aws/aws-cli

Throw s3api put-bucket-notification-configuration, we can create notification events, but can't find a way to delete the notification.

After I deleted the connected Lambda function, the s3 Event still links to the deleted function. It could be better, if the event item could been deleted automatically, once the relative lambda function gets deleted.

guidance

Most helpful comment

@mtdowling how about if we have other events as well which is connected with active lambda ?

All 5 comments

You change a bucket's notification configuration using s3api put-bucket-notification-configuration. To clear out the configuration completely, try the following command:

aws s3api put-bucket-notification-configuration --bucket=mybucket --notification-configuration="{}"

Thanks for the feature request. A great place to get in touch with the Lambda team is through their forums at: https://forums.aws.amazon.com/forum.jspa?forumID=186

Thank you @mtdowling A little tricky, all similar api follow this pattern?

For S3, yes. Anything that you can pass an empty value to should accept "{}"

Thank you @mtdowling Sorry, I forgot to close it.

@mtdowling how about if we have other events as well which is connected with active lambda ?

Was this page helpful?
0 / 5 - 0 ratings