Saturday, September 21, 2019

How to setup AWS EC2 instance



Please follow the below steps to create an EC2 instance. The EC2 instance is a virtual server provided by AWS. We will be using this EC2 to install Java, Jenkins, Docker, etc. We will be using this as a CI server.

Steps:

             
1: Enter the "https://aws.amazon.com/" in the address bar and click on the "Sign in to the Console"
         


2. Enter  AWS Console Username and Password and click on Sign in


3: Go to the AWS console. click on Services --> Click on EC2

4: Click on Launch instance. Choose an Amazon machine image (AMI), click next
5: Select Ubuntu Server 18.04 LTS (HVM), SSD Volume Type - ami-05c1fa8df71875112 (64-bit x86) / ami-0606a0d9f566249d3 (64-bit Arm)
6: Choose an Instance Type and click on Next: Configure Instance Details
 7: Leave values to default and click on Next in Step 3 and Step 4 

8: Click on Next : Add Tags to enter the Tag Name and click on Add Tag and enter the KEY and VALUE pair  and click on Next: Configure Security Group 
Note : A tag consists of a case-sensitive key-value pair. For example, you could define a tag with key = ubuntu and value = ubuntu-jenkins-master.
9:  Click create new security group, give name as MyJenkinsSecurityGroup, add a custom rule for 8080, 8090, allow 0.0.0.0/0 as source IP

10: Click on Review and Launch and then you will see the "Review Instance Launch" like all the previous steps the below image

11. Selecting an existing key pair or create a new key pair. 
choose to create a new key pair and  Please do not give any space or any character in naming the key.
Once you click on "Download key pair", the key will be downloaded/stored to your "Downloads" folder with provided name like "aws-ubuntu.pem".

12: Click on Launch Instances and click on Instance id to see the complete instance status
13: Once instance is created. you can see it running..



No comments:

Post a Comment

How to install and setup Kubernetes cluster using kOps in AWS environment

  Kops: Kops is also known as Kubernetes Operations, it is an open-source project which helps you to create, upgrade, destroy, and maintain ...