Skip to content

Instantly share code, notes, and snippets.

@reisjr
Created December 17, 2018 21:36
Show Gist options
  • Save reisjr/d26a8717f91006caafaafab747bbe746 to your computer and use it in GitHub Desktop.
Save reisjr/d26a8717f91006caafaafab747bbe746 to your computer and use it in GitHub Desktop.
Configure Lifecycle Policy AMS
pip install --upgrade awscli
aws mediastore put-lifecycle-policy --container-name myfirstcontainer --lifecycle-policy file://policy.json
aws mediastore get-lifecycle-policy --container-name myfirstcontainer
{
"rules": [
{
"definition": {
"path": [
{"prefix": "Football/"}
],
"days_since_create": [
{"numeric": [">" , 28]}
]
},
"action": "EXPIRE"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment