Getting started with an Amazon Ec2
Tags: day6, aws, devops, beginners
Published: 2024-01-09 18:53:47



Meanwhile, take a look at AWS's free-tier services by visiting:[ AWS Free Tier](https://aws.amazon.com/).

Hello Readers!let's dive into Amazon's renowned cloud computing service, EC2 (Elastic Cloud Computing), a key player in the AWS cloud computing lineup. EC2 stands out for its widespread use and user-friendly nature, making it accessible for beginners and experts alike.

When it comes to cloud computing, Amazon's AWS is in a league of its own, outshining even Google's Cloud Computing. Here's why AWS, and specifically EC2, is the go-to choice:

1. **Intuitive User Interface:** AWS boasts a better and more user-friendly UI/UX, making it a breeze for users to navigate and make the most of its features.

2. **Consistency & Reliability:** EC2 offers a reliable and consistent performance, ensuring your applications run smoothly without any glitches.

3. **Flexibility, Scalability, and High Performance:** AWS provides the flexibility to scale resources as needed, ensuring top-notch performance to meet varying demands.

4. **Pay-As-You-Go Pricing:** The cost-effective pay-as-you-go pricing model means you only pay for the resources you use, making it a financially savvy choice.

5. **Customization Options:** EC2 offers a plethora of customization options, allowing you to tailor your computing environment to suit your specific requirements.

6. **Security at the Forefront:** Security is a top priority for AWS, ensuring that your data and applications are safeguarded against potential threats.

7. **Rich Learning Resources:** AWS provides extensive learning platforms, tutorials, and comprehensive documentation, making it easier for users to grasp and make the most of the services.

8. **Exceptional Customer Care Support:** AWS takes customer support seriously, providing unparalleled assistance and guidance to its users. Your satisfaction is their priority.

In summary, EC2 under AWS stands out not just for its technical capabilities but also for its user-focused approach, making it a leading choice in the realm of cloud computing services.




![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3mzdt7pzszodnbzq0mjh.png)

Elastic Cloud Computing (EC2):
About EC2
Setup EC2 Instance
Stepwise installation.
Setup SSH Key
Connect and clone Git repo
install Node.js, NPM modules, and learn how to launch a website.
Conclusion
AWS Elastic Cloud Computing (EC2)
1. About AWS EC2
Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) cloud. Using Amazon EC2 eliminates your need to invest in hardware upfront, so you can develop and deploy applications faster. You can use Amazon EC2 to launch as many or as few virtual servers as you need, configure security and networking, and manage storage. Amazon EC2 enables you to scale up or down to handle changes in requirements or spikes in popularity, reducing your need to forecast traffic.




2. Setup EC2 Instance
Sign up on AWS at https://aws.amazon.com/ and make an account. You will need to enter your billing and credit card information. However, you'll be charged few dollars or less just to get confirm it's a legit account and the deducted amount will get refunded later on.

Note: You should delete instances you no longer need to ignore any additional billing unknowingly.

Find and Select Amazon EC2 from listed products and services.
Click the button: "Launch Instance"



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8tggw08wkmu6c6swumhe.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zc3vt56x2d0axi9bgqi7.png)



Now, follow to the steps mentioned below to get started and for a successful installation.

Step 1: Choose an Amazon Machine Image (AMI): This is the operating system your virtual machine in the cloud will be. As Ubuntu is popular, open-sourced, easy to use, and included in free tier eligibility.


Step 2: Choose an Instance Type: Leave it at "General purpose t2.micro free tier eligible". Click "Next: Configure Instance Details."

Step 3: Configure Instance Details: Leave the default settings. Click "Next: Add Storage"

Step 4: Add Storage: Leave the default settings. Click "Next: Add Tags"

Step 5: Add Tags: Create a key and value. I named mine "tutorial-key": "tutorial-value"

Step 6: Configure Security Group: Check the radio button labeled "create a new security group" and give it a name and description. Make sure there is an SSH type listed and add HTTP and HTTPS. Click "Review and Launch"

Step 7: Review Instance Launch: Click "Launch" The following window should appear. Select "Create a new key pair" and type in a name. Click "Download." Make sure you save this file!!! Click "launch instance" You should be redirected to a page where you can click "view instances" to see all your instances. Your new EC2 instance should appear and may take a few moments to initialize.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j4x0cqjw4mup8212nflb.png)



Yaay! You have successfully created a new EC2 instance!


[Devops Shell scripting ➡️ ](https://dev.to/surajvast/devops-learning-complete-guide7-3cfb)