Create S3 buckets in seconds from your command line to use on your website.
Project description
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
Python 3
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
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.
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
After you set that up, you can type buckup and that should open the prompt.
If you want to specify other than the default region, please use --region flag with buckup, e.g. buckup --region eu-west-2.
After you answer all the questions you should obtain your bucket details that are ready to use in your application.
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
File details
Details for the file buckup-0.1a4.tar.gz
.
File metadata
- Download URL: buckup-0.1a4.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69d7e0d4be9add155ea0c4059395021348e2afd40120db12c847826c4413b88c |
|
MD5 | fdbe5ec8cd0bc5a7bb888560c020023f |
|
BLAKE2b-256 | 44610b279f29e7ea3b2cd30b77a328c2a6f8d24a02f6b64619b53b0c75e479c9 |
File details
Details for the file buckup-0.1a4-py3-none-any.whl
.
File metadata
- Download URL: buckup-0.1a4-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1be9dbad02382c031de42707e5e690a9b7d0a77a5840b80b9567703c63d541a1 |
|
MD5 | 59c7c1db3a94a929da4b82dcd0b4956a |
|
BLAKE2b-256 | eb3ce56ad45fdb894a6ab53f8d04c0e6c5021eafbad0d09fcd1791b64c6f0b6a |