AWS CLI copy life-cycle configuration between buckets
Solution 1:
Second command worked fine for me
aws s3api put-bucket-lifecycle-configuration --bucket <bucket> --lifecycle-configuration file://<file>
Where <file> is the file obtained with this command
aws s3api get-bucket-lifecycle-configuration --bucket <bucket-old> ><file>