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

PyPI (pip)

python3 -m pip install buckup

Arch User Repository

Buckup can be found on AUR.

cd /tmp
git clone https://aur.archlinux.org/buckup.git
cd buckup
makepkg -si

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.

Screenshot of buckup’s command line output, showing the creation of a test bucket

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.1a5.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

buckup-0.1a5-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: buckup-0.1a5.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for buckup-0.1a5.tar.gz
Algorithm Hash digest
SHA256 ac2ffc02dbd114999837b60501086ccae04bdd51e9d98e9495affad737c75eef
MD5 26a421fcbac1a1543457054243385a05
BLAKE2b-256 323c0806e8719192bb4018eb94cbde3e07d5f06b7b1c9a8c5306c906779c4a47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: buckup-0.1a5-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for buckup-0.1a5-py3-none-any.whl
Algorithm Hash digest
SHA256 ab54ae76976d060a57ee8600a96ed8178ec5d931963092ac47525ccdcc9e1de2
MD5 9fac720cc1d2b945304f74af9b249550
BLAKE2b-256 e80229f1a821b1ce0b05d10aa7838ed5794ae4fe4414bfc6943269fe93849b5a

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