s3site

A command line tool to manage static sites on Amazons S3 service


License
Other
Install
pip install s3site==0.2.1

Documentation

S3site

A command line tool to hlp manage static sites on Amazon's S3 service.

Usage:

  $ pip install s3site
  $ s3site --help

Create a s3site.yaml file with your aws settings:

aws:
  bucket: "your-bucket-name"
  access_key_id: "your-access-key-id"
  secret_access_key: "your-secret-access-key"
  endpoint: "s3-ap-southeast-1.amazonaws.com"

For endpoints see: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

Optionally create a .s3siteignore file to prevent files being uploaded from your local file system:

.git/*
.DS_Store
.gitignore

.s3siteignore uses the fnmatch function see: https://docs.python.org/2/library/fnmatch.html

Then run the sync command to publish all files in local directory to s3 bucket (note files are published with alc set to "public-read"):

s3site sync

Road map

  • handle large files

License

Copyright © 2015 Ben Olsen Distributed under the GNU General Public License v3.0.