07-21-2023, 04:45 PM
I faced the same `com.amazonaws.services.s3.model.AmazonS3Exception: Unable to validate the following destination configurations` error when I tried to execute `putBucketNotificationConfiguration`
Upon checking around, I found that every time you update the bucket notification configuration, AWS will do a test notification check on all the existing notification configurations. If any of the test fails, say for the reason such as you removed the destination lambda or SNS topic of an older configuration, AWS will fail the entire bucket notification configuration request with above exception.
To address this, either identify/fix the configuration that is failing the test or remove all the existing configurations(if plausible) in the bucket using `aws s3api put-bucket-notification-configuration --bucket=myBucketName --notification-configuration="{}"` and then try updating the bucket configuration.
Upon checking around, I found that every time you update the bucket notification configuration, AWS will do a test notification check on all the existing notification configurations. If any of the test fails, say for the reason such as you removed the destination lambda or SNS topic of an older configuration, AWS will fail the entire bucket notification configuration request with above exception.
To address this, either identify/fix the configuration that is failing the test or remove all the existing configurations(if plausible) in the bucket using `aws s3api put-bucket-notification-configuration --bucket=myBucketName --notification-configuration="{}"` and then try updating the bucket configuration.