Configuring the Backend for Automated Deployment

Configure the backend and the EC2 instance to automate deployment on AWS.

Let’s write the GitHub Action file and configure the backend for automatic deployment.

At the root of the project, we’ll create a directory called .github, and inside this directory, we’ll create another directory called workflows. Inside the workflows directory, we’ll create a file called ci-cd.yml. This file will contain the YAML configuration for the GitHub Action. Let’s start by defining the name and the events that will trigger the running of the workflow:

Get hands-on with 1400+ tech skills courses.