CloudSnap uses one lifecycle rule and it is auto-created once the bucket is initialized by the array. Therefore, the following step applies to the destination bucket "Bucket-2" only, the source bucket will be connected to the array the step after.
On your local machine or AWS CloudShell, Create a file
offload_lifecycle.json
and paste the following rule to it.
{
"Rules": [
{
"ID": "AbortIncompleteMultipartUpload",
"Filter": {},
"Status": "Enabled",
"AbortIncompleteMultipartUpload": {
"DaysAfterInitiation": 1
}
}
]
}
Then use AWS CLI to create the lifecycle rule on the destination bucket. Make sure to replace the bucket name (highlighted in green below)
aws s3api put-bucket-lifecycle-configuration --bucket cbs-offload-us-bucket-2 --lifecycle-configuration file://offload_lifecycle.json
Verify on AWS Console that the lifecycle rule is created.