day1-creating cicd in aws

eng-tayyab.liaqat
2 min readMar 23, 2023

--

devops is not only cicd. you must know other tools.. if you are able to automate any task then you are devops.

creating automated backups is an example.

if you want to know automation you must first have a fine understanding of manual .

Suppose you have created a cicd pipeline then interviewer changed his questions, then you may not be able to answer, but if you have understanding of manual concepts then you can answer those questions easily.

cicd is deployment of application on server through automation.

So first we should see how to do tasks manually first.

example:

java developer created a code of 1000 lines .

suppose that code is a calculator application.

He must install that calculator into the public server also after complete development.So that people can access that application across the globe

Let's suppose he chose EC2 as a public server (vps hosting)

But this application should have some tests and validations which it should pass . Now out QA team would write cypress testing and selenium test cases.

this application is now passed to the operations team for deployment they may face some dependencies also while installing this calculator app

lets deploy our first manual spring boot application through

  1. launch an ec2
sudo yum update -y
  1. install java maven and git
  2. build artifact with maven
  3. deploy with nohup or java
sudo yum install git -y
sudo git clone https://github.com/TheCloudWorld/spring-boot-demo-app.git myproject
cd myproject
#Add Maven package into yum repository
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
# Install Apache Maven package
sudo yum install -y apache-maven
sudo yum install java-1.8.0-openjdk-devel.x86_64 -y
mvn clean install
cd target
#Run the below command to launch spring-boot app
java -jar JAR_FILE_NAME.jar
#Below command runs launches the spring-boot app as the background process
nohup java -jar JAR_FILE_NAME.jar > /dev/null 2>&1 &

Now automated way IN DAY2!!!

--

--