S3 Website
1 min read
s3, aws, static-site
Written in 2017. Tools, APIs and prices may have changed since.
Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/s3-website-playground.
learn s3-website npm module
usage session
# install deps
npm install
# create static website
./node_modules/s3-website/s3-website.js create
# deploy static website
amzn-s3-demo-website-bucket
./node_modules/s3-website/s3-website.js deploy
# view
open http://amzn-s3-demo-website-bucket.s3-website-us-east-1.amazonaws.com
# NOTE: using `./node_modules/s3-website/s3-website.js` to avoid global install and
# doesn't work with `npx` because of https://www.evernote.com/l/AAH8gou8OCZKF6rfnqA2Tom3BU7c0xuFTM0B/image.png