- Make S3 bucket to host the website
aws s3 mb s3://mybucket --region ap-southeast-1
- Copy the asset to the bucket
aws s3 cp ./dist s3://mybucket/ --recursive
- Create CF
aws
- Launch EC2: Amazon Linux 2 AMI
- Select t2.micro
- User data
#!/bin/bash
sudo yum install git
sudo yum install tmux
tmux
git clone https://github.com/panyapoc/simplestaticweb.git
cd simplestaticweb/
sudo python -m SimpleHTTPServer 80
- SG open port 80