Commit 059f6b7
committed
Wait for bucket to become accessible after creation
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#ConsistencyModel1 parent 30705e6 commit 059f6b7
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
| 307 | + | |
307 | 308 | | |
308 | | - | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
312 | 320 | | |
313 | 321 | | |
314 | 322 | | |
| |||
0 commit comments