Skip to content

Manipulate a simple key/value JSON object file in an S3 bucket

License

Notifications You must be signed in to change notification settings

cameronmaske/s3env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S3env

Manipulate a key/value JSON object file in an S3 bucket through the CLI. Built to ease setting remote enviroment variables with Zappa.

Usage

Quick start.

$ s3env prod get
API_KEY=secret
FOO=bar

$ s3env prod set:BONJOUR=hello
Key successfully set.
Current key/values are...
API_KEY=secret
FOO=bar
BONJOUR=hello

$ s3env prod rm:BONJOIR
Key removed.
Current key/values are...
API_KEY=secret
FOO=bar

Getting started.

Install via...

pip install s3env

Create an s3env.json.

{
    "prod": "s3:https://your-bucket-here/file-in-bucket.json"
}

Run commands.

$ s3env --help

Development

After pulling down the repo locally, create a virtualenv, then install by running...

pip install -e .

Deployment

Publish to pypi with...

python setup.py sdist upload -r pypi

About

Manipulate a simple key/value JSON object file in an S3 bucket

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages