HOW  TO LAUNCH NEW INSTANCE WITHOUT WEBUI?

HOW TO LAUNCH NEW INSTANCE WITHOUT WEBUI?

In WebUI creating an account in AWS and launching the instance is quite easy and unchallenging, so why not we try launching an instance from CLI .

Thinking about launching an instance through CLI might seem difficult but it is not as much as you think. We can do that in few simple steps but first we'll learn why we use CLI over WebUI .

No alt text provided for this image
  • CLI is much more faster than WebUI, we only have to write the commands to get the output at a faster rate.
  • In WebUI we cannot launch more than 1 instance at the same time but in CLI we just have to provide the count to launch the instances.
  • We can write all the required data into the same command without moving to other pages which is not possible in WebUI as we have to move further checking the data.

Lets start with creating and launching an instance

We will follow the steps given below:

📌 Create a key pair

📌 Create a security group

📌 Launch an instance using the above created key pair and security group.

📌 Create an EBS volume of 1 GB.

📌 The final step is to attach the above created EBS volume to the instance you created in the previous steps.

To create a key pair:

We need to ask for help from AWS ec2

No alt text provided for this image

It will provide us with all the ec2 commands --

No alt text provided for this image
No alt text provided for this image

Find the key pair command >>

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image


To create security group:

Again take help from ec2 and find the command for security groups then take help and know about all the required elements as we have done to create a key pair.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image


To launch an instance:

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image


To create volume in EBS:

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image


To attach the EBS in the launched Instance:

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image


To view or add a comment, sign in

More articles by Shreya Garg

  • Chat Server using Python

    Task Description: 🔅Create your own Chat Servers, and establish a network to transfer data using Socket Programing by…

    2 Comments
  • Use-case of JavaScript in Microsoft

    JAVASCRIPT JavaScript is often abbreviated as JS, is a programming language that conforms to the ECMAScript…

  • Using Face Recognition to solve several Tasks

    Task Description 📄 ❄️ Creating a program that perform below mentioned task upon recognizing a particular face. 📌 When…

  • Creating Live Streaming Video Chat using cv2 module of Python

    We will create a live streaming Video Chat App without voice, using cv2 module of Python. To know about cv2 module then…

    2 Comments
  • Working on OpenCV-Python

    Before working on OpenCV module we have to first know about Computer Vision. What is Computer Vision? Computer vision…

  • Cyber crime cases and confusion matrix

    What is a Confusion Matrix? A Confusion matrix is an N x N matrix used for evaluating the performance of a…

    1 Comment
  • Running GUI software on Docker container

    What provides GUI to OS An X server is a program in the X Window System that runs on local machines (i.e.

    6 Comments
  • Creating Machine Learning model on Docker Container

    DOCKER According to wikipedia, Docker is a set of platform as a service products that use OS-level virtualization to…

    6 Comments
  • How Ford Company uses Red Hat Openshift

    What is Openshift? OpenShift is a cloud development Platform as a Service (PaaS) developed by Red Hat. It is an open…

    6 Comments
  • Ansible Role to Configure K8S Multi Node Cluster over AWS Cloud

    In this Blog we will perform the following tasks: 🔅 Create Ansible Playbook to launch 3 AWS EC2 Instance 🔅 Create…

    2 Comments

Others also viewed

Explore content categories