JAM stack: Deploying a S3 website form commandline.
Hosting the client facing page is an important part of creating a performant JAM stack app, To do this I will be using Amazon's AWS S3 offering and the AWS CLI. From here I will assume that you have the AWS CLI installed and have it configured to use an account that is capable of creating and configuring S3 buckets. I'm using Powershell emulated through cmndr on Windows as my command line. Create the bucket The first thing we need is to create the bucket. If every thing is fine it will look like this. (replace kleeut-jamblog with your bucket name, they need to be unique) aws s3api create-bucket --acl public-read --bucket kleeut-jamblog --create-bucket-configuration LocationConstraint=ap-southeast-2 { "Location": "http://kleeut-jamblog.s3.amazonaws.com/" } Gotchas: The error messages are pretty good, these are the ones I've commonly run into. If you're already run the command or for you own the bucket you'll see: An