Skip to content

datacratic/s3-lifecycle-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

s3-lifecycle-editor

An utility to edit/dump/replace s3 buckets lifecycles. Tested with python 2.7

Requirement

  • Boto >= 2.34 (Might work with older versions, but that's the one it was developed with)

Help

%> python s3_lifecycle_editor_runner.py -h
usage: s3_lifecycle_editor_runner.py [-h] -k KEY -i S3_ID [-b BUCKET]
                                     [-o {edit,dump,replace}] [-f FILE]
                                     [--bucket-from-file]

Edit/dump/replace bucket lifecycle config.

optional arguments:
  -h, --help            show this help message and exit
  -k KEY, --key KEY     AWS key
  -i S3_ID, --id S3_ID  AWS key id
  -b BUCKET, --bucket BUCKET
                        The bucket to edit
  -o {edit,dump,replace}, --operation {edit,dump,replace}
                        The action to perform. Default: edit.
  -f FILE, --file FILE  When replacing, define a file
  --bucket-from-file    Deduces the bucket name from the file name

About

An utility to edit/dump/replace s3 buckets lifecycles.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages