-
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
fix(s3): added retry logic for replication policy race condition #30995
fix(s3): added retry logic for replication policy race condition #30995
Conversation
Community NoteVoting for Prioritization
For Submitters
|
@justinretzolk When can this get reviewed & merged? TF building resources with newly configured S3 replication requires two runs before it applies successfully. |
Hey @edwardofclt 👋 Thank you for taking the time to raise this, and for checking in on it! Unfortunately I can't provide an ETA on when this will be reviewed/merged due to the potential of shifting priorities. We prioritize by count of 👍 reactions and a few other things (more information on our prioritization guide if you're interested). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
make testacc TESTARGS='-run=TestAccS3BucketReplicationConfiguration_' PKG=s3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 20 -run=TestAccS3BucketReplicationConfiguration_ -timeout 180m
bucket_replication_configuration_test.go:766: skipping test: AWS Technical Support request required to allow ExistingObjectReplication
--- SKIP: TestAccS3BucketReplicationConfiguration_existingObjectReplication (0.00s)
--- PASS: TestAccS3BucketReplicationConfiguration_disappears (78.72s)
--- PASS: TestAccS3BucketReplicationConfiguration_schemaV2SameRegion (175.10s)
--- PASS: TestAccS3BucketReplicationConfiguration_filter_emptyPrefix (310.91s)
--- PASS: TestAccS3BucketReplicationConfiguration_withoutStorageClass (314.58s)
--- PASS: TestAccS3BucketReplicationConfiguration_schemaV2DestinationMetrics (315.20s)
--- PASS: TestAccS3BucketReplicationConfiguration_twoDestination (315.37s)
--- PASS: TestAccS3BucketReplicationConfiguration_replicaModifications (316.25s)
--- PASS: TestAccS3BucketReplicationConfiguration_withoutId (316.33s)
--- PASS: TestAccS3BucketReplicationConfiguration_filter_tagFilter (316.66s)
--- PASS: TestAccS3BucketReplicationConfiguration_replicationTimeControl (316.97s)
--- PASS: TestAccS3BucketReplicationConfiguration_multipleDestinationsEmptyFilter (316.95s)
--- PASS: TestAccS3BucketReplicationConfiguration_filter_emptyConfigurationBlock (317.22s)
--- PASS: TestAccS3BucketReplicationConfiguration_schemaV2 (317.72s)
--- PASS: TestAccS3BucketReplicationConfiguration_multipleDestinationsNonEmptyFilter (318.27s)
--- PASS: TestAccS3BucketReplicationConfiguration_migrate_withChange (328.02s)
--- PASS: TestAccS3BucketReplicationConfiguration_migrate_noChange (331.50s)
--- PASS: TestAccS3BucketReplicationConfiguration_filter_andOperator (338.83s)
--- PASS: TestAccS3BucketReplicationConfiguration_configurationRuleDestinationAddAccessControlTranslation (338.94s)
--- PASS: TestAccS3BucketReplicationConfiguration_configurationRuleDestinationAccessControlTranslation (340.81s)
--- PASS: TestAccS3BucketReplicationConfiguration_withoutPrefix (268.52s)
--- PASS: TestAccS3BucketReplicationConfiguration_basic (350.59s)
--- PASS: TestAccS3BucketReplicationConfiguration_filter_withoutId (265.47s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 448.209s
aa45025
to
56dff2b
Compare
@edwardofclt thanks for the contribution! 🎉 |
This functionality has been released in v5.1.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Adds retry logic to provider to ensure AWS has time to return updated info about the S3 replication configuration.
Relations
Closes #30646
Output from Acceptance Testing