Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ETL-628] Rework S3 event config lambda (#108)
* Delete preexisting S3 event notification before creation * Rework s3_event_config lambda to index configs from s3 prefix/suffix * Changes related to Prefix/prefix FilterRule discrepancy There is a bug in moto/AWS where moto only allows filter rules with lowercase `Name` values in put_bucket_notification_configuration calls. So to normalize our notification configurations when comparing configurations obtained via a GET with configurations to be utilized in a PUT (as we do in the function `notification_configuration_matches`), we make the `Name` values lower case in when comparing notification configurations. When calling get_bucket_notification_configuration, the `Name` value is always capitalized, whereas moto requires us to use lowercase `Name` values when calling put_bucket_notification_configuration. * Remove event notification for namespace upon branch deletion
- Loading branch information