DEV Community

Caleb Onyejeme
Caleb Onyejeme

Posted on

Your easy steps in launching EC2 instance on AWS

INTRODUCTION

Amazon Web Services (AWS) is a comprehensive and widely adopted cloud computing platform provided by Amazon. AWS offers a broad set of infrastructure services such as computing power, storage options, networking, databases, machine learning, analytics, and much more, all available through the internet. These services enable businesses and developers to host applications and services on the cloud, reducing the need for maintaining physical servers and data centers.

Image description

Step 1: Sign into your AWS account
To get started sign into your AWS account by entering your details. If you don't have an account with AWS, you can create one by clicking the "create a new AWS account" a button AND following instructions.

Image description

Step 2: Once you are signed in the AWS, open the EC2 console
On the management console search bar, search for the "EC2" and click "EC2" from the search history and that opens the EC2 console where you will be able to manage your instances.

Image description

Step 3: Launch an Instance
In the EC2 dashboard, click on Launch Instance to start the process of creating a new instance.
Image description

After clicking on the “Launch Instance” button, you will be redirected to a page as shown below.

*Step 4: Name your EC2 instance *
Provide a name for your EC2 instance by giving your instance a unique name that can help with easy identification and management of your resources in the future.

Image description

Step 5: Choose an Amazon Machine Image (AMI)
An Amazon Machine Image (AMI) is a pre-configured template that contains the operating system and other software necessary for your instance. In this step, you can choose from a wide variety of AMIs provided by AWS or the AWS Marketplace. Select an AMI that best suits your requirements.
In this case, you can choose “Amazon Linux” as the operating system for your instance.

Image description

Step 6: Choose an instance type
Select an Instance Type (e.g., t2.micro for free tier, t3.medium, etc.). You can filter for Free Tier eligible instances if you are on the free plan.

Image description

Step 7: Create a Pair Key
To securely connect to your EC2 instance from your system, you must create a key pair. This key pair includes a public key stored by AWS and a private key that you download to your local machine. The private key is used for authentication and to establish a secure connection with your EC2 instance.

Image description

Step 8: Configure instance details, Add Storage and configure security groups
*Configure instance details: *

You can configure details like network, subnet, and IAM role. In most cases, you can leave these settings as default. Ensure that you choose the correct VPC and Subnet for your region and network setup.
Add storage:
AWS will automatically assign a default storage configuration, which you can customize by adding additional volumes or adjusting the size.

If you require more storage, click "Add New Volume" and define the desired size and type.

Configure security groups :
A Security Group acts as a virtual firewall, managing inbound and outbound traffic for your EC2 instance. You can either create a new security group or select an existing one. Set up rules to permit SSH (port 22) for Linux instances or RDP (port 3389) for Windows instances. If you intend to host a website, you can also add rules for HTTP (port 80) and HTTPS (port 443). Once you've configured the security group, click Review and Launch to proceed.

Image description

Image description

On the right side of the EC2 instance launch page, you'll find the summary details section. This section offers an overview of the configuration settings you've selected for your instance, allowing you to review and confirm them before proceeding with the launch.

Image description

Step 9: Review and Launch
Before starting the instance, carefully review the configuration details to confirm everything is correctly set up. Verify the instance type, storage options, security groups, and any additional settings you've configured. Once you're satisfied, click the "Launch Instance" button.
When you have successfully launched your instance, you will be redirected to another page that displays the success dialogue box.

Image description

Conclusion
Launching an Amazon EC2 (Elastic Compute Cloud) instance on AWS is a straightforward yet powerful process, that enables users to deploy scalable virtual servers for various applications.
Launching an EC2 instance on AWS offers the flexibility and scalability needed to run applications in the cloud. This article has guided you through the process, including navigating the AWS Management Console, selecting an AMI, choosing an instance type, configuring instance details, adding storage, setting up security groups, and successfully launching your instance.

Top comments (0)