170 words
1 minute
Solved: CI/CD to AWS EC2 with Github Actions

I've finally gotten CI/CD setup with AWS EC2 for the second time, after doing the same with Hostinger.

I followed this tutorial Hosting Your Resume on AWS EC2 with a CI/CD Setup Using GitHub Actions | AWS Project Demo and got it working.

I wasn't sure why it wasn't working before the first few weeks of my time with AWS, but got it to work now.

The exact steps I did to get this to work was:

  1. Create another EC2 instance to experiment on.
  2. Create a dummy website and github repository to push to the EC2 instance.
  3. Followed the youtube tutorial, keyed in the github secrets, worked out the yml file and tested it. Worked on the first try, so tutorial instructions were good.
  4. Next, applied the same methodology to the first EC2 instance that my active website is on.
  5. After some tweaks to the linux command scripts in the yml file, I got it to work.

Next task is to docker-ize the website, or the ML apps that I've yet to deploy to the server.