An utility to edit/dump/replace s3 buckets lifecycles.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
License.txt
README.md
s3_lifecycle_editor.py
s3_lifecycle_editor_runner.py

README.md

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