s3 bucket notification configuration resource cannot be destroyed if the bucket no longer exists #20036
Labels
bug
Addresses a defect in current functionality.
service/s3
Issues and PRs that pertain to the s3 service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
parent ticket: #19932
Problem statement. When an aws_s3_bucket_notification resource references a bucket that no longer exists(has been destroyed outside of terraform), a terraform destroy will fail with one of the following errors:
Error: error deleting S3 Bucket Notification Configuration NoSuchBucket: The specified bucket does not exist
Expected behavior - A warning is displayed and the destroy continues to remove the resource as normal.
The text was updated successfully, but these errors were encountered: