Skip to content

Commit

Permalink
Merge pull request #33845 from hashicorp/b-aws_s3_bucket-find
Browse files Browse the repository at this point in the history
r/aws_s3_bucket: Use configured timeout during Delete
  • Loading branch information
ewbankkit authored Oct 9, 2023
2 parents 3ae059a + bf60a97 commit fc03c52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/33845.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/aws_s3_bucket: Use configurable timeout for resource Delete
```
2 changes: 1 addition & 1 deletion internal/service/s3/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ func resourceBucketDelete(ctx context.Context, d *schema.ResourceData, meta inte
return create.DiagError(names.S3, create.ErrActionDeleting, resNameBucket, d.Id(), err)
}

_, err = tfresource.RetryUntilNotFound(ctx, 1*time.Minute, func() (interface{}, error) {
_, err = tfresource.RetryUntilNotFound(ctx, d.Timeout(schema.TimeoutDelete), func() (interface{}, error) {
return nil, findBucket(ctx, connSDKv2, d.Id())
})

Expand Down

0 comments on commit fc03c52

Please sign in to comment.