From c3e3e2ee04aef9b3dff17614f46a8f096d58df94 Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Thu, 19 Oct 2023 13:11:42 -0400 Subject: [PATCH] r/aws_s3_bucket_object_lock_configuration: Don't wait for the object lock configuration to disappear. --- internal/service/s3/bucket_object_lock_configuration.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/service/s3/bucket_object_lock_configuration.go b/internal/service/s3/bucket_object_lock_configuration.go index b728b6bca45..dd6a1338ea1 100644 --- a/internal/service/s3/bucket_object_lock_configuration.go +++ b/internal/service/s3/bucket_object_lock_configuration.go @@ -244,13 +244,7 @@ func resourceBucketObjectLockConfigurationDelete(ctx context.Context, d *schema. return diag.Errorf("deleting S3 Bucket Object Lock Configuration (%s): %s", d.Id(), err) } - _, err = tfresource.RetryWhenNotFound(ctx, s3BucketPropagationTimeout, func() (interface{}, error) { - return findObjectLockConfiguration(ctx, conn, bucket, expectedBucketOwner) - }) - - if err != nil { - return diag.Errorf("waiting for S3 Bucket Object Lock Configuration (%s) delete: %s", d.Id(), err) - } + // Don't wait for the object lock configuration to disappear as may still exist. return nil }