Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_bucket_creator-0.0.5.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distributions

aws_bucket_creator-0.0.5-py2.7.egg (18.9 kB view hashes)

Uploaded Source

aws_bucket_creator-0.0.5-py2-none-any.whl (9.2 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page