DEV Community

Akbar Nafisa
Akbar Nafisa

Posted on

Setup EC2 Instance

For this step, we will create an EC2 instance to deploy our server app. Here are several steps to do it:

  • Sign in to the AWS Management Console:
    • Go to the AWS Console.
    • Click on "Sign in to the Console" and enter your credentials.
  • Navigate to the EC2 Dashboard:
    • Open the EC2 Dashboard.
    • Click on Launch Instance to create a new instance.

Image description

  • Enter Name and Tags: Enter the name of the instance.

Image description

  • Choose an Amazon Machine Image (AMI): AMIs are pre-configured templates for your instances. For this project, we will select Ubuntu.

Image description

  • Choose an Instance Type: Instances come in different sizes, catering to various performance and cost needs. For this project, we will select the free tier.

Image description

  • Create a Key Pair: Key pairs are used for secure access to your instances.

Image description

Create and download the private key file and keep it secure. We will need this file to access the instance from our computer.

Image description

  • Configure Network Settings: This security group acts as a virtual firewall for your instance, controlling inbound and outbound traffic. For now, add the group name and the source IP type; we will configure the rest later.

Image description

  • Launch the Instance: Finally, click the Launch Instances button. AWS will take several minutes to set up the instance. The instance will be available when its state is Running.

Image description

Top comments (0)