Skip to main content

Create S3 buckets in seconds from your command line to use on your website.

Project description

Buckup logo

buckup

Create S3 bucket, policy and user with one command. After creation it is ready to use on your project.

Features

  • Create bucket

  • Enable versioning

  • Set CORS

  • Create user and generate access key pair and give it permissions to the bucket.

  • Set policy to enable s3:GetObject permission on every object in your bucket to the public.

Dependencies

Installation

pip install buckup

Development build

You can easily install buckup inside a virtual environment and work on it there, e.g.

git clone git@github.com:torchbox/buckup.git
cd buckup
python3 -m venv venv
source venv/bin/activate
pip install -e .
buckup

Usage

  1. First you need an AWS account. You need programmatic access key to use it with buckup.

    • If you have AWS CLI installed, you can save your credentials with aws configure; or

    • you can set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variable containing your credentials.

    Read boto3 documentation for more detail.

    1. If you want to restrict your access only to essential credentials to use buckup, please set them to:

      • iam:ListAccountAliases (not required to use)

      • s3:PutBucketPolicy

      • s3:CreateBucket

      • iam:GetUser

      • iam:CreateUser

      • s3:PutBucketCORS

      • s3:PutBucketVersioning

      • iam:CreateAccessKey

  2. After you set that up, you can type buckup and that should open the prompt.

    1. If you want to specify other than the default region, please use --region flag with buckup, e.g. buckup --region eu-west-2.

  3. After you answer all the questions you should obtain your bucket details that are ready to use in your application.

Buckup screenshot

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

buckup-0.1a2.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

buckup-0.1a2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file buckup-0.1a2.tar.gz.

File metadata

  • Download URL: buckup-0.1a2.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for buckup-0.1a2.tar.gz
Algorithm Hash digest
SHA256 9ec06c828b025f009156c5df93991acf605a8b2dba46d8611080d5ae6ca87799
MD5 c357b2083534edfd6adf28d32fdf95d1
BLAKE2b-256 397a97479bb4b6af3442d869f639ce182c19e40152bde1618e0dd8803af1559e

See more details on using hashes here.

File details

Details for the file buckup-0.1a2-py3-none-any.whl.

File metadata

File hashes

Hashes for buckup-0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 569fe5494bf7477500038859f15140f412977b8d86713b63a299549cb78e9909
MD5 7f8d36fa987f10e3c5fe933282ce83e6
BLAKE2b-256 dcda10687783b8d81a2bebc1dd2e59609dfe2635fb14c873464373bb5e5560f6

See more details on using hashes here.

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