Skip to content

writetoritika/AWS-DevOps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deployment automation on AWS using Jenkins CI/CD

Step-1 Deploying the application on AWS EC2 (without the automation)

Testing the project locally

  1. Clone this project
git clone https://github.com/verma-kunal/AWS-Session.git
  1. Setup the following environment variables - (.env) file
DOMAIN= ""
PORT=3000
STATIC_DIR="./client"

PUBLISHABLE_KEY=""
SECRET_KEY=""
  1. Initialise and start the project
npm install
npm run start

Set up an AWS EC2 instance

  1. Create an IAM user & login to your AWS Console
    • Access Type - Password
    • Permissions - Admin
  2. Create an EC2 instance
    • Select an OS image - Ubuntu
    • Create a new key pair & download .pem file
    • Instance type - t2.micro
  3. Connecting to the instance using ssh
ssh -i instance.pem ubunutu@<IP_ADDRESS>

Configuring Ubuntu on remote VM

  1. Updating the outdated packages and dependencies
sudo apt update
  1. Install Git - Guide by DigitalOcean
  2. Configure Node.js and npm - Guide by DigitalOcean

Deploying the project on AWS

  1. Clone this project in the remote VM
git clone https://github.com/verma-kunal/AWS-Session.git
  1. Setup the following environment variables - (.env) file
DOMAIN= ""
PORT=3000
STATIC_DIR="./client"

PUBLISHABLE_KEY=""
SECRET_KEY=""

For this project, we'll have to set up an Elastic IP Address for our EC2 & that would be our DOMAIN

  1. Initialise and start the project
npm install
npm run start

NOTE - We will have to edit the inbound rules in the security group of our EC2, in order to allow traffic from our particular port

Project is deployed on AWS 🎉

About

Deployment automation on AWS using Jenkins CI/CD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 84.3%
  • CSS 12.5%
  • JavaScript 2.7%
  • Dockerfile 0.5%