resource/aws_s3_bucket: Prevent panics with various API read failures and prevent NoSuchBucket error on deletion #5842
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rather than continue to piecemeal these interface conversion fixes, this implements them consistently all at once. Prevent panics such as these:
Ran across the
NoSuchBucket
error on deletion during testing:Aside from those cleans up some old issues/PRs as part of the consistency effort:
Closes #3459
Closes #3603
Closes #3620
Changes proposed in this pull request:
GetBucketWebsite
interface conversionGetBucketVersioning
interface conversionGetBucketAccelerateConfiguration
interface conversionGetBucketRequestPayment
interface conversionGetBucketLogging
interface conversionGetBucketReplication
interface conversionGetBucketEncryption
interface conversionGetBucketLocation
interface conversionNoSuchBucket
error during deletionTestAccAWSS3Bucket_Cors
for testing stability (eventual consistency issues) and best practices (1resource.Test
per acceptance test)Output from acceptance testing: