Front-end Tutorials

Front-end Tutorials

HTMLCSSSassJavaScriptReactJS
CMS Tutorials

CMS Tutorials

WordPress
Tutorials expand

Guide to Launching an EC2 Instance (step-by-step)

Posted in AWS Tutorial
Updated on Sep 22, 2024
By Mari Selvan
👁️ 47 - Views
⏳ 4 mins
💬 1 Comment
Launching an EC2 Instance

Photo Credit to CodeToFun

🙋 Introduction

Amazon Elastic Compute Cloud (EC2) is a web service that provides resizable compute capacity in the cloud.

Launching an EC2 instance is a fundamental step in deploying applications on Amazon Web Services (AWS).

In this comprehensive guide, we'll walk you through the step-by-step process of launching an EC2 instance.

📚 Prerequisites

Before you begin, ensure you have the following:

  • AWS Account: You need an active AWS account. If you don't have one, you can sign up for AWS before proceeding.
  • Access to AWS Console: Log in to the AWS Management Console, where you can access and manage AWS resources.

🛠️ Launching EC2 Instance

Upon successfully logging in to the AWS Management Console, kindly proceed with the following steps to launch an AWS EC2 instance.

  1. In the Find Services search bar, type EC2 and select EC2 from the results.

    ec2

    Photo Credit to CodeToFun

  2. In the EC2 Dashboard, click the Instances link in the left sidebar and Click the Launch Instance button.

    EC2 instances

    Photo Credit to CodeToFun

  3. Choose an Instance Type - select the hardware of your instance. Each instance type comes with varying amounts of CPU, memory, and storage.

    In this tutorial, we will choose Amazon Ubuntu EC2 Instance

    Choose Ubuntu Server

    Photo Credit to CodeToFun

  4. Please scroll down slightly and click on the create new key pair link.

    Create New Key Pair

    Photo Credit to CodeToFun

  5. Follow these instructions to generate a key pair:

    1. Key pair name: Type the name of your choice.
    2. Key pair type: Choose RSA.
    3. Private key file format: Choose .ppk.

    Now, click on Create Key Pair button.

    Create PPK key pair

    Photo Credit to CodeToFun

  6. Kindly scroll down a bit to access the Network settings, and ensure that you have selected the checkboxes of the following:

    • Allow SSH traffic from
    • Allow HTTPS traffic from the internet
    • Allow HTTP traffic from the internet
    EC2 Network Settings

    Photo Credit to CodeToFun

  7. Review and Launch - review your configuration and click Launch.

    Launch EC2 instance

    Photo Credit to CodeToFun

  8. Please return to the instances section to check the current status of the EC2 instance we just launched.

    The image below depicts the successful launch and operation of our EC2 instance.

    EC2 instance running successfully

    Photo Credit to CodeToFun

🎉 Conclusion

Congratulations! You have successfully launched an EC2 instance on AWS. This guide provides a basic overview, and there are many additional configuration options and features to explore based on your specific needs.

Remember to monitor and manage your instances through the AWS Management Console. For further customization and optimization, refer to the AWS documentation and explore additional AWS services that complement your EC2 instance.

👨‍💻 Join our Community:

To get interesting news and instant updates on Front-End, Back-End, CMS and other Frameworks. Please Join the Telegram Channel:

Author

author
👋 Hey, I'm Mari Selvan

For over eight years, I worked as a full-stack web developer. Now, I have chosen my profession as a full-time blogger at codetofun.com.

Buy me a coffee to make codetofun.com free for everyone.

Buy me a Coffee

Share Your Findings to All

Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Mari Selvan
Mari Selvan
9 months ago

If you have any doubts regarding this article (Guide to Launching an EC2 Instance (step-by-step)), please comment here. I will help you immediately.

We make use of cookies to improve our user experience. By using this website, you agree with our Cookies Policy
AgreeCookie Policy