Creates S3 bucket, tags, policy and lifecycle policy via boto3.
Project description
AWS Bucket Creator
Features
aws-bucket-creator creates a bucket and sets tags, lifecycle, and policy
Installation
aws-bucket-creator is on PyPI so all you need is:
$ pip install aws-bucket-creator
Example
Getting help
$ bucket-creator create --help
Usage: bucket-creator create [OPTIONS]
primary function for creating a bucket :return:
Options:
-d, --days-to_glacier TEXT number of days before moving to glacier
-w, --bucket-policy-principals TEXT
comma separated list of bucket policy
principals
-b, --bucket-name TEXT bucket-name [required]
-p, --aws-profile TEXT aws profile [required]
-r, --required-tags TEXT comma delimited list of tag key names
-t, --required-values TEXT comma delimited list of tag key values
-v, --version Print version and exit
--debug Turn on debugging
--help Show this message and exit.
$bucket-creator create -b test-bucket -p my-profile -r Name,Project,DeployedBy,ResourceOwner -t test,io,test,test -w arn:aws:iam::12343434:root
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aws_bucket_creator-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43deadd6caba22ba80bb8bfa6df71fcc87ca7e17acc919aee90b1c8339d2b396 |
|
MD5 | da74ff6684cfc7ae2636dc0ab6319afc |
|
BLAKE2b-256 | 9f2c170b11a341d8a0a65add293f11108005789bbf2dec3aa73e79cbf8b29567 |