DEV Community

Cover image for Launching Your First EC2 Instance on AWS: A Step-by-Step Guide for Cloud Engineers
Oladimeji Zainab
Oladimeji Zainab

Posted on

Launching Your First EC2 Instance on AWS: A Step-by-Step Guide for Cloud Engineers

Modern applications demand infrastructure that is scalable, reliable, and quick to deploy. Instead of spending days provisioning physical servers, cloud platforms now allow engineers to launch fully functional virtual machines in just a few minutes. One of the most widely used services for this purpose is Amazon Elastic Compute Cloud, a core compute service offered by Amazon Web Services.

Amazon Elastic Compute Cloud (EC2) enables developers and cloud engineers to spin up virtual servers, configure networking and security, and deploy applications on-demand with complete control over their computing environment. Whether you're hosting a web application, running backend services, or experimenting with cloud infrastructure, EC2 provides the flexibility to scale resources as your needs grow.

In this guide, we’ll walk through the step-by-step process of launching an EC2 instance using the AWS Management Console. From selecting an Amazon Machine Image (AMI) to configuring key pairs and security groups, this tutorial will help you understand the essential steps required to deploy your first virtual server in the AWS cloud.

By the end of this guide, you’ll have a running EC2 instance and a clearer understanding of how compute resources are provisioned in AWS.

  • On the AWS Management Console home page, use the search bar at the top of the interface to search for EC2.

EC2 Search

  • From the EC2 dashboard, click the Instances section and select Launch Instance to begin creating a new virtual server.

Dashboard and intance

  • Provide a name for your EC2 instance to help easily identify it within your AWS environment.

EC2 Instance name

  • Click on Additional Tags and add relevant tags as needed to help organize and manage your resources.

TAG 1

TAG 2

  • Navigate to the Amazon Machine Image (AMI) section, which is equivalent to “Image” in Azure, and select the operating system you want to use. For this project, we will be using Ubuntu.

AMI Ubuntu

Ubutun

  • create a key pair to ensure secure access and authentication for your EC2 instance.

keypair2

Keypairs

Marchkeydownload

  • Keep all other settings at their default values.

Default

  • Click Launch Instance to start deploying your EC2 server.

Launch instance

Launching

  • Connect to your EC2 instance to start managing and configuring your server.

Connect to instance

  • On the Connect interface, scroll down and click the Connect button to establish a session with your EC2 instance.

Connect connect

Initializing

  • Take note of the server name for reference and easier identification of your EC2 instance.

Server Name

  • It’s important not to leave your EC2 instance running when it’s no longer needed, as this may incur unnecessary charges. While you can terminate instances using the AWS CloudShell or CLI, covering that process is beyond the scope of this guide.

Cloud shell

  • Alternatively, you can click the Services icon next to the AWS logo and select EC2 to return to the main EC2 dashboard.

EC2 DASHBOARD

  • On the main EC2 dashboard, navigate to and select Instances.

Main dashboard

  • Select the running instance by clicking on its Instance ID, which will take you to the Instance Summary page where you can verify the instance’s running status.

Instance Summary

  • Click on Instance State and select Terminate to delete the EC2 instance.

Delete 1

  • Confirm the termination to permanently delete the EC2 instance.

confirm delete

  • The instance is in the process of shutting down.

shutting down

  • The EC2 instance has now been successfully terminated.

No Instances

  • Conclusion

Launching an EC2 instance is an essential skill for developers and cloud engineers, offering hands-on experience with scalable and secure cloud infrastructure. In this guide, we walked through the entire process of launching, connecting to, and terminating an EC2 instance on AWS, including selecting an Amazon Machine Image, configuring key pairs and security, and organizing resources with names and tags. By mastering these steps, you gain the ability to deploy, manage, and scale cloud resources efficiently while avoiding unnecessary costs, laying a strong foundation for more advanced AWS projects and real-world cloud deployments.

Top comments (2)

Collapse
 
realcloudprojects profile image
SKILL.SCH

Welldone

Collapse
 
zainab_oladimeji profile image
Oladimeji Zainab

Thanks boss