Creating EC2 Instance

Published: (December 22, 2025 at 05:32 PM EST)
1 min read
Source: Dev.to

Source: Dev.to

Log in to the AWS Management Console

  • Open the AWS Management Console.
  • Search for EC2 in the services search bar and open the EC2 Dashboard.

Launch a New Instance

  1. Click Launch Instance.
  2. Give your instance a name (e.g., MyWebServer).

Choose an Amazon Machine Image (AMI)

  • This defines your operating system.
  • Common choices: Amazon Linux 2, Ubuntu Server, Windows Server.

Select an Instance Type

  • Choose the instance type that matches your performance and cost requirements.

Configure Key Pair (SSH Access)

  • Create a new key pair or use an existing one.
  • Download the .pem file – you’ll need it to SSH into the instance.

Configure Network Settings

  • Choose a VPC and Subnet appropriate for your deployment.

Configure Storage

  • Adjust storage size and type as needed for your workload.

Launch the Instance

  • Review your settings and click Launch.

Connect to Your Instance

For Linux/macOS (SSH)

chmod 400 path/to/your-key-pair.pem
ssh -i path/to/your-key-pair.pem ec2-user@

For Windows

  1. Decrypt the admin password using your key pair.
  2. Download the Remote Desktop file and use the decrypted password to connect.

Your EC2 Instance Is Ready

You can now install software, deploy applications, or configure the instance as a server.

Back to Blog

Related posts

Read more »

Creating an EC2 Instance

Steps 1. Search bar, type EC2 and choose the first option. 2. Click Launch Instance. 3. In the Launch Instance Environment, enter a name in the name bar and cl...

Day 13: Terraform Data Sources

Data Source Think of a data source like a phone directory with a username and phone number as key‑value pairs accessed via an API. Instead of hard‑coding value...

Day 12.Attach Volume to EC2 Instance

Lab Information The Nautilus DevOps team is creating services on AWS and breaking the migration into smaller tasks for better control, risk mitigation, and res...