aws-sdk-ruby: PUT Versioning Incorrectly Succeeds
Please fill out the sections below to help us address your issue
Issue description
Despite having versioning take without issue according to the SDK, the next sent call proceeds to fail, claiming the versioning failed.
I can understand if this call is asynchronous and that the response of the PUT doesn’t imply the operation completed, but if that’s the case there would/should be a callback.
aws-sdk-s3 1.16.0
ruby 2.3.1
puts s3_client.put_bucket_versioning(
bucket: 'datahere',
versioning_configuration: {
status: 'Enabled'
}
).inspect
# Initialize Cross region replication
puts s3_client.put_bucket_replication(
bucket: 'datahere',
replication_configuration: { # required
role: 'arn:aws:iam::xxxxxx:role/xxxxx', # required
rules: [ # required
{
prefix: '*', # required
status: 'Enabled', # required, accepts Enabled, Disabled
destination: { # required
bucket: 'arn:aws:s3:::namehere', # required
storage_class: 'STANDARD', # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA
}
}
]
},
use_accelerate_endpoint: false
).inspect
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 25 (10 by maintainers)
It didn’t have strong concurrency. With the new re:Invent announcements, I think this is actually done now. 😃