- Grab the source
cd
into the source and runpython setup.py install
First, create a gokusan.yml file in the root of the repository you want to deploy. Please DO NOT commit this file to your repository. Add your provided AWS credentials to it...
s3_bucket: '...'
s3_access_key: '...'
s3_secret_key: '...'
cloudfront_distribution_id: '...' # (optional)
- Run
gokusan <build directory>
where "build directory" is the directory containing the built files to upload to s3
Gokusan makes two assumptions about your project. Eventually, you may be able to customize these assumptions, but for now they stand as follows:
- Each project must have an
index.html
- Each project must have a
404.html
page that acts as the default "error" page
- Uploads static files to s3
- Configures s3 bucket as static website
- Reads credentials and bucket name from yaml file
- Configures bucket policy to allow public access
- Pass filename to upload as website
- Check if folder contains index.html
- Automatically create and associate cloudfront distribution
- Automatically create iAm credentials and policies
- Automate bucket creation