DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • AWS to Azure Migration: A Cloudy Journey of Challenges and Triumphs
  • Unlocking the Benefits of a Private API in AWS API Gateway
  • Zero Trust for AWS NLBs: Why It Matters and How to Do It
  • Unlocking the Power of Serverless AI/ML on AWS: Expert Strategies for Scalable and Secure Applications

Trending

  • Revolutionizing Financial Monitoring: Building a Team Dashboard With OpenObserve
  • Building Enterprise-Ready Landing Zones: Beyond the Initial Setup
  • It’s Not About Control — It’s About Collaboration Between Architecture and Security
  • How Large Tech Companies Architect Resilient Systems for Millions of Users
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. How to Create EC2 Instance in AWS — Tutorial for Beginners

How to Create EC2 Instance in AWS — Tutorial for Beginners

This tutorial is for beginners which include how to create an account in AWS EC2 as well as how to create a new instance of ubuntu.

By 
Shital Kat user avatar
Shital Kat
·
Oct. 26, 20 · Tutorial
Likes (2)
Comment
Save
Tweet
Share
8.9K Views

Join the DZone community and get the full member experience.

Join For Free

EC2 stands for, Elastic Compute Cloud.  It is a part of Amazon’s cloud-computing platform, Which allows users to rent virtual computers on which they can run their own computer applications. Creating and using the EC2 instance is very simple. Following are the steps:



Step 1: Create an Account in EC2

1.1) Go to and the following screen will get a display.  

1.2) Click on "Create an AWS Account"

amazon EC2

1.3) Start filling the account creation form. 

You will require your email Id, Phone Number, and Credit/Debit card details. AWS is free for 12 months, however, it is mandatory to fill in payment details to create an account. 

aws account

1.4) After filling in all the required information, your account will get created. Within 24 hours all the services (like EC2) will get activated on your account. (but mostly it take 5-10 minutes)

Step 2: Log in to EC2 Instance

2.1) Go to EC2's homepage, you will redirect to the login page. https://console.aws.amazon.com/ec2/v2/home

2.2) Select the Root User option, enter an email address, click on Next to enter a password.
aws sign in

Step 3: EC2 Home Page

3.1) After signing in you will redirect to the EC2 homepage. 

3.2) Else you can directly go to the Home Page Link - https://console.aws.amazon.com/ec2/v2/home

3.3) Else from any AWS page, click on service, and find EC2 option.

aws services

Step 4: Create an Instance

4.1) Click on Instance Tab
new EC2

4.2) Click on "Launch Instance > Launch Instances".
Launch Instance

4.3) Launch Instance Step 1 — "Choose an AMI "

Now choose the latest Ubuntu server here. Currently, the latest is 20.04

amazon machine image

4.4) Launch Instance Step 2 — "Choose Instance Type"

Select the one with Free tier eligible.choose an instance type

4.5) Launch Instance Step 3 — "Configure Instance"

Skip this step as of now. Also, skip the step "4. Add-Storage" and "5. Add Tags"

configure instance details

4.6) Launch Instance Step 6 — "Configure Security Group"

Add the ports which you wanted to Open to the outside world. I have added Port 8000 since I want to deploy my website to this port.

Also, I have added HTTP and HTTPS port.

0.0.0.0 means you can access these ports from anywhere. If you want to access your ports from a known IP address then mention those addresses here.

Click on the Review and Launch Button.
configure security group

4.7) Launch Instance Step 7 — "Review"

Review the information and click on the "Launch" button. You will get an option to create a new or select an existing Keypair. 

Download and save this file in a safe place. You will need this file while connecting with the instance via putty, WinSCP, Filezilla.
key pair

4.8) Click on the "Launch Instance" button. This is the final step. And your instance will be created.

Go to the instance Tab, and find your instance. Review the information and Rename the instance with any alias.

instances

Step 5: Connect to the Instance

5.1) Select the instance and Click on Actions > Connect
instances

5.2) You will redirect to a page. Your default username is "ubuntu". Click on connect.
connect to instances

5.3) Hurray! You will get connected to your instance. Enjoy!
ubuntu

AWS

Opinions expressed by DZone contributors are their own.

Related

  • AWS to Azure Migration: A Cloudy Journey of Challenges and Triumphs
  • Unlocking the Benefits of a Private API in AWS API Gateway
  • Zero Trust for AWS NLBs: Why It Matters and How to Do It
  • Unlocking the Power of Serverless AI/ML on AWS: Expert Strategies for Scalable and Secure Applications

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!