Skip to main content

Command Palette

Search for a command to run...

Day 3 - Creating Your First AWS EC2 Instance: A Comprehensive Guide for Virtual Servers in the AWS Cloud

Embark on Cloud Excellence with Amazon's Elastic Compute Cloud (EC2)

Published
β€’4 min read
Day 3 - Creating Your First AWS EC2 Instance: A Comprehensive Guide for Virtual Servers in the AWS Cloud

Introduction :-

Ready to dive into cloud computing? Amazon's Elastic Compute Cloud (EC2) is your gateway to launching and establishing virtual servers in the cloud. This comprehensive guide will walk you through each step of creating and establishing your initial EC2 instance, empowering you to deploy, configure, and manage virtual machines and servers on the AWS platform. Let's dive in and get your virtual resources up and running!

πŸš€Step-by-Step Guide: Creating an EC2 Instance :-

Step 1: Sign in to the AWS Management Console -

  1. Visit the AWS Console:

  2. Log in:

    • πŸ” Enter your AWS account credentials.

    • If you're new, follow the prompts to create an AWS account.

  3. Access EC2 Dashboard:

    • 🏠 In the AWS Management Console, click on "EC2" under the "Compute" section.

Image-1

Step 2: Choose a Name for Your Instance -

  1. Click "Launch Instance":

    • πŸš€ On the EC2 dashboard, click "Launch Instance" to start the instance creation process.
  2. Provide Instance Name:

    • πŸ–‹οΈ Choose a name for your instance.

    • This helps in identifying the purpose or role of the instance.

    • Proceed to the next step.

Step 3: Choose an Amazon Machine Image (AMI) -

  1. Select AMI:

    • πŸ–ΌοΈ Choose an AMI from the provided list.

    • Select an image that matches your operating system and application requirements.

Step 4: Choose an Instance Type -

  1. Select Instance Type:

    • βš™οΈ Choose an instance type based on your computing needs.

    • Consider factors like CPU, RAM, and storage requirements.

    • Proceed to the next step.

Step 5: Create a Key Pair -

  1. Create Key Pair:

    • πŸ—οΈ Create a new key pair for secure access.

    • Download the private key (.pem file) and store it securely.

Step 6: Configure Security Group -

  1. Configure Security Group:

    • πŸ”’ Create or select a security group.

    • Define inbound and outbound rules to control traffic.

πŸ’‘
Step 7: Add Storage
  1. Configure Storage:

    • πŸ“¦ Add and configure storage volumes for your instance.

    • Choose the type of storage, such as Amazon EBS volumes.

Step 8: Review and Launch -

  1. Review Instance Details:

    • πŸ” Carefully review all configurations.

    • Make any necessary changes.

  2. Click "Launch":

    • πŸš€ Initiate the instance launch process.

Step 9: Connect to Your Instance -

  1. Monitor Launch Status:

    • πŸ•’ Check the status on the Instances page.
  2. Connect to Instance:

    • πŸ”— Once the instance is running, use the private key (.pem file) to connect via SSH (for Linux) or RDP (for Windows).

    • Alternatively, explore AWS Systems Manager Session Manager for secure connections without a public IP.

Step 10 : Congratulations! πŸŽ‰ You have successfully provisioned an AWS EC2 instance, establishing a robust virtual machine and server infrastructure in the cloudπŸš€πŸ”-

AWS Rule Note :-

  1. AWS One-Year Rule πŸ•’:

    • Free Tier Eligibility: Available to new AWS customers.

    • Duration: Applies for the first 12 months following sign-up.

    • Services Included: Various AWS services have free tier limits.

    • Usage Limits: Limited amounts of resources provided at no additional cost.

  2. EC2 Rule - Free Tier Hours ⏰:

    • Free Tier Instance Type: e.g., t2.micro instances.

    • Hours Included: 750 hours per month for the first 12 months.

    • Usage Calculation: Running one instance continuously for a month equals 750 hours.

    • Additional Usage: Beyond free tier limits, standard charges apply.

  3. Free Tier Storage πŸ“¦:

    • Amazon S3: 5 GB of standard storage per month for 12 months.

    • Amazon RDS: Up to 750 hours of db.t2.micro instances per month for 12 months.

    • Amazon EBS: 30 GB of storage for the first 12 months.

Conclusion:

Congratulations! πŸŽ‰ You've successfully created an AWS EC2 instance. Utilize the AWS Management Console to manage, monitor, and scale your instance. This marks the completion of your journey into the world of cloud computing with AWS EC2.


🌟Thank you for taking the time to read this blog. I hope you gained valuable insights today! If you found the content helpful, please consider liking, sharing, and following for more insightful posts in the future. Your support means a lot. 🌟 Looking forward to sharing more knowledge with you! πŸš€

πŸŽ‰πŸŒ Let's bridge the distance and connect πŸ”—πŸ€Anup DeshmukhπŸŽ‰πŸ˜Š

DevOps-Tech

Part 2 of 4

In this #DevOpsJourney, I am sharing DevOps-related technological knowledge. Stay connected with #DevOpsSeries. Thank you! 😊

Up next

#Day 2 - Linux : A Beginner's Guide

Your Computing Experience with Open-Source Excellence and In-Depth Linux Understanding.