What is EC2 instance?
It is virtual server provided by AWS. We will be using this EC2 to install Java, Jenkins, Tomcat, Maven. We will be using this as a CI server. Please follow the below steps to create an EC2 instance.
Steps:
1: Login to AWS console by clicking this link --> https://aws.amazon.com/console/
It is virtual server provided by AWS. We will be using this EC2 to install Java, Jenkins, Tomcat, Maven. We will be using this as a CI server. Please follow the below steps to create an EC2 instance.
Steps:
1: Login to AWS console by clicking this link --> https://aws.amazon.com/console/
click on All services, Click on Compute --> Click on EC2
8. Click create new security group, give name as MyES2SG, add custom rule for 8080, allow 0.0.0.0/0 as source IP
9. Click on Review and launch
Click on Launch
2. Click on Launch instance. Choose an Amazon machine image (AMI), click next
5. Enter number of instances as 2 as you need one for Jenkins and another one for Tomcat
6. Leave values to default in step 4. click next7. enter tag name in step 5. Click to add a Name tag. it can be something like EC2.
click next:configure Security Group
click next:configure Security Group
8. Click create new security group, give name as MyES2SG, add custom rule for 8080, allow 0.0.0.0/0 as source IP
9. Click on Review and launch
Click on Launch
10. Choose the existing key pair if you have one, otherwise create new one, give some name as myEC2Key. Make sure you download the key in your local machine. Please do NOT give space or any character while naming the key.
Connect to EC2 instance from local machine:
Please click the below link to understand the steps for connecting to EC2 instance from your local machine - windows or Apple laptop.
Please click the below link to understand the steps for connecting to EC2 instance from your local machine - windows or Apple laptop.
http://www.cidevops.com/2018/0
Watch here for live demo:
This completes our first lab exercise :-)
No comments:
Post a Comment