-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Race condition renaming public access blocks #10587
Comments
This also affects the ability to destroy resources under some conditions |
Reference: #10587 Reference: #16796 Output from acceptance testing: ``` --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_basic (38.97s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_removed (56.16s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_updateBasic (87.68s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithFilter_Empty (12.16s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithFilter_MultipleTags (60.16s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithFilter_Prefix (60.97s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithFilter_PrefixAndTags (60.97s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithFilter_Remove (61.00s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithFilter_SingleTag (60.97s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithStorageClassAnalysis_Default (39.98s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithStorageClassAnalysis_Empty (12.14s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithStorageClassAnalysis_Full (39.60s) --- PASS: TestAccAWSS3BucketInventory_basic (26.27s) --- PASS: TestAccAWSS3BucketInventory_encryptWithSSES3 (26.34s) --- PASS: TestAccAWSS3BucketInventory_encryptWithSSEKMS (26.45s) --- PASS: TestAccAWSS3BucketMetric_basic (26.21s) --- PASS: TestAccAWSS3BucketMetric_WithEmptyFilter (2.25s) --- PASS: TestAccAWSS3BucketMetric_WithFilterMultipleTags (46.71s) --- PASS: TestAccAWSS3BucketMetric_WithFilterPrefix (45.51s) --- PASS: TestAccAWSS3BucketMetric_WithFilterPrefixAndMultipleTags (46.55s) --- PASS: TestAccAWSS3BucketMetric_WithFilterPrefixAndSingleTag (45.88s) --- PASS: TestAccAWSS3BucketMetric_WithFilterSingleTag (46.49s) --- PASS: TestAccAWSS3BucketNotification_LambdaFunction (45.26s) --- PASS: TestAccAWSS3BucketNotification_LambdaFunction_LambdaFunctionArn_Alias (40.24s) --- PASS: TestAccAWSS3BucketNotification_Queue (27.96s) --- PASS: TestAccAWSS3BucketNotification_Topic (28.53s) --- PASS: TestAccAWSS3BucketNotification_Topic_Multiple (29.23s) --- PASS: TestAccAWSS3BucketNotification_update (49.26s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_basic (29.52s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_BlockPublicAcls (68.84s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_BlockPublicPolicy (68.21s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_disappears (26.48s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_disappears_Bucket (18.16s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_IgnorePublicAcls (68.18s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_RestrictPublicBuckets (68.83s) ```
…18537) * service/s3: Add d.IsNewResource checks and standardize retry logic Reference: #10587 Reference: #16796 Output from acceptance testing: ``` --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_basic (38.97s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_removed (56.16s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_updateBasic (87.68s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithFilter_Empty (12.16s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithFilter_MultipleTags (60.16s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithFilter_Prefix (60.97s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithFilter_PrefixAndTags (60.97s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithFilter_Remove (61.00s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithFilter_SingleTag (60.97s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithStorageClassAnalysis_Default (39.98s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithStorageClassAnalysis_Empty (12.14s) --- PASS: TestAccAWSS3BucketAnalyticsConfiguration_WithStorageClassAnalysis_Full (39.60s) --- PASS: TestAccAWSS3BucketInventory_basic (26.27s) --- PASS: TestAccAWSS3BucketInventory_encryptWithSSES3 (26.34s) --- PASS: TestAccAWSS3BucketInventory_encryptWithSSEKMS (26.45s) --- PASS: TestAccAWSS3BucketMetric_basic (26.21s) --- PASS: TestAccAWSS3BucketMetric_WithEmptyFilter (2.25s) --- PASS: TestAccAWSS3BucketMetric_WithFilterMultipleTags (46.71s) --- PASS: TestAccAWSS3BucketMetric_WithFilterPrefix (45.51s) --- PASS: TestAccAWSS3BucketMetric_WithFilterPrefixAndMultipleTags (46.55s) --- PASS: TestAccAWSS3BucketMetric_WithFilterPrefixAndSingleTag (45.88s) --- PASS: TestAccAWSS3BucketMetric_WithFilterSingleTag (46.49s) --- PASS: TestAccAWSS3BucketNotification_LambdaFunction (45.26s) --- PASS: TestAccAWSS3BucketNotification_LambdaFunction_LambdaFunctionArn_Alias (40.24s) --- PASS: TestAccAWSS3BucketNotification_Queue (27.96s) --- PASS: TestAccAWSS3BucketNotification_Topic (28.53s) --- PASS: TestAccAWSS3BucketNotification_Topic_Multiple (29.23s) --- PASS: TestAccAWSS3BucketNotification_update (49.26s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_basic (29.52s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_BlockPublicAcls (68.84s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_BlockPublicPolicy (68.21s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_disappears (26.48s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_disappears_Bucket (18.16s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_IgnorePublicAcls (68.18s) --- PASS: TestAccAWSS3BucketPublicAccessBlock_RestrictPublicBuckets (68.83s) ``` * resource/aws_s3_bucket_metric: Standardize on S3 Bucket Metrics Configuration friendly name in logging and errors
This has been released in version 3.36.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
If you rename a
aws_s3_bucket_public_access_block
it will probably get an error on apply. Running the command multiple times will resolve it as presumably would doing aterraform state mv
first if you remembered.Community Note
Terraform Version
Terraform v0.12.12
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Actual Behavior
or
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: