chore: aws s3 commands examples and lifecycle rules

This commit is contained in:
Michele Cereda
2024-02-10 18:01:13 +01:00
parent cfd52b1860
commit 419b009a23
3 changed files with 128 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
{
"Rules": [
{
"ID": "ExpirationOfTaggedObjects",
"Filter": {
"And": {
"Prefix": "start/here",
"Tags": [
{
"Value": "mytagvalue1",
"Key": "mytagkey1"
},
{
"Value": "mytagvalue2",
"Key": "mytagkey2"
}
]
}
},
"Status": "Enabled",
"Expiration": {
"Days": 1
}
}
]
}

View File

@@ -0,0 +1,17 @@
{
"Rules": [
{
"Filter": {
"Prefix": "oldObjects/"
},
"Status": "Enabled",
"Transitions": [
{
"Days": 365,
"StorageClass": "GLACIER"
}
],
"ID": "TransitionOfOldObjects"
}
]
}