Example of deploying a Node.js application to AWS EC2 using CircleCI
Before you clone the project, I assume you have the following:
- A Github repository
- A CircleCI account
- An AWS account
- A running AWS EC2 instance (Ubuntu 22.04)
- Ansible install on your machine
- Ansible
$ pip install --user ansible
- Clone repository
$ git clone https://github.com/djomajeff/aws-circle-ci.git
$ cd aws-circleci
You can refer to this excellent tutorial