Found a workaround: s3cmd -c s3cfg setlifecycle lifecycle_configuration.xml s3://my-new-bucket --signature-v2
probably aws-sdk gem is not compatible with this feature. On Tue, Feb 21, 2017 at 4:35 PM, Anton Iakimov <yakim...@gmail.com> wrote: > Doing this (aws-sdk ruby gem): > > s3_client.put_bucket_lifecycle_configuration({ > bucket: bucket, > lifecycle_configuration: { > rules: [ > { > id: "clean-temporary", > status: "Disabled", # required, accepts Enabled, Disabled > prefix: "temporary", > filter: { > prefix: "temporary", > }, > expiration: { > days: 1, > }, > }, > ], > }, > }) > > I got an error: Aws::S3::Errors::BadRequest: [!] > > According to Release Notes, my version (kraken) supports it: > > S3 bucket lifecycle API has been added. Note that currently it only > supports object expiration. > > What am I doing wrong? > -- > With best wishes, > Anton Iakimov > -- With best wishes, Anton Iakimov
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com