Skip to content

Wait for bucket to become accessible after creation - #148

Merged
stephanme merged 1 commit into
mainfrom
dependabot-pr-validation
Jul 30, 2026
Merged

Wait for bucket to become accessible after creation#148
stephanme merged 1 commit into
mainfrom
dependabot-pr-validation

Conversation

@stephanme

Copy link
Copy Markdown
Member

S3 bucket creation in non-us-east-1 regions is eventually consistent: CreateBucket can return success while HeadBucket still returns 404 for a short window. Use the SDK's BucketExistsWaiter after CreateBucket to poll until the bucket is accessible before returning, fixing the flaky ensure-storage-exists integration test in eu-central-1.

https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html#ConsistencyModel

S3 bucket creation in non-us-east-1 regions is eventually consistent:
CreateBucket can return success while HeadBucket still returns 404 for
a short window. Use the SDK's BucketExistsWaiter after CreateBucket to
poll until the bucket is accessible before returning, fixing the flaky
ensure-storage-exists integration test in eu-central-1.

https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html#ConsistencyModel
@github-project-automation github-project-automation Bot moved this from Inbox to Pending Merge | Prioritized in Foundational Infrastructure Working Group Jul 30, 2026
@stephanme
stephanme merged commit 059f6b7 into main Jul 30, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants