s3cmd icon indicating copy to clipboard operation
s3cmd copied to clipboard

LifecycleConfiguration uses obsolete field Prefix

Open LadMartin opened this issue 3 years ago • 0 comments

Calling s3cmd expire s3://bkt/ --expiry-days 1 Produces <LifecycleConfiguration> <Rule> <Prefix></Prefix> <Status>Enabled</Status> <Expiration> <Days>1</Days> </Expiration> </Rule></LifecycleConfiguration> Which uses obsolete field Rule/Prefix and it shall be replaced with Rule/Filter/Prefix from doc: Prefix identifying one or more objects to which the rule applies. This is no longer used; use Filter instead.

AWS still support the obsolete version, but others may not. The AWS examples only use the new version.

LadMartin avatar Apr 08 '22 11:04 LadMartin