What this will cover
- Host a static website at S3
- Redirect
www.website.com
towebsite.com
- Website can be an SPA (requiring all requests to return
index.html
) - Free AWS SSL certs
- Deployment with CDN invalidation
function loadenv { | |
echo "Loading contents of .env file as environment variables." | |
for i in $(cat .env); do | |
export $i | |
echo "exported $i" | |
done | |
} |