mirror of
https://gitea.com/mcereda/oam.git
synced 2026-03-03 23:44:25 +00:00
chore: aws s3 commands examples and lifecycle rules
This commit is contained in:
26
examples/aws/s3.lifecycle-rules/expiration.tagged.json
Normal file
26
examples/aws/s3.lifecycle-rules/expiration.tagged.json
Normal 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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
17
examples/aws/s3.lifecycle-rules/transition.json
Normal file
17
examples/aws/s3.lifecycle-rules/transition.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"Rules": [
|
||||
{
|
||||
"Filter": {
|
||||
"Prefix": "oldObjects/"
|
||||
},
|
||||
"Status": "Enabled",
|
||||
"Transitions": [
|
||||
{
|
||||
"Days": 365,
|
||||
"StorageClass": "GLACIER"
|
||||
}
|
||||
],
|
||||
"ID": "TransitionOfOldObjects"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user