Creating an Amazon EC2 instance is a fundamental task when working with Amazon Web Services (AWS).

Creating an Amazon EC2 instance is a fundamental task when working with Amazon Web Services (AWS).

ยท

3 min read

Step 1: Log In to the AWS Console

  1. Visit the AWS website: Go to https://aws.amazon.com/.

  2. Sign In: If you already have an AWS account, sign in. If not, you can create a new account.

Step 2: Accessing the EC2 Dashboard

  1. Navigate to EC2: Once you're logged in, click on "Services" at the top left corner of the AWS Management Console.

  2. Select EC2: Under the "Compute" section, you'll find "EC2." Click on it to enter the EC2 Dashboard.

Step 3: Launching Your First EC2 Instance

  1. Click "Launch Instance": In the EC2 Dashboard, click the "Launch Instance" button to start the instance creation process.

  2. Choose an Amazon Machine Image (AMI): You'll be presented with a variety of AMIs, including Amazon Linux, Ubuntu, Windows Server, and many more. Select the AMI that best suits your needs. For beginners, Amazon Linux is a good choice.

  3. Choose an Instance Type: AWS offers a range of instance types with varying CPU, memory, and network capabilities. For your first instance, you can select "t2.micro," as it's part of the free tier and a good starting point for learning.

  4. Configure Instance Details: Here, you can specify the number of instances, network settings, and more. For beginners, the default settings will generally suffice.

  5. Add Storage: You can configure the size and type of the root storage for your instance. The default settings are often sufficient for basic use.

  6. Add Tags (Optional): You can assign key-value tags to your instance for better organization and management.

  7. Configure Security Groups: Security groups act as firewalls for your instance, controlling incoming and outgoing traffic. Create a new security group or select an existing one, and configure the rules. Ensure you allow SSH (port 22 for Linux) or RDP (port 3389 for Windows) access for remote connections.

  8. Review and Launch: Review your instance configuration, and click "Launch" to proceed.

  9. Create or Use an Existing Key Pair: To access your instance, you need a key pair. You can choose to create a new one or use an existing key pair. If creating a new key pair, make sure to download and save the private key file (.pem). It's crucial to keep this file safe, as you'll need it to connect to your instance.

Step 4: Connecting to Your EC2 Instance

First, select The instance and go to connect tab > then SSH Client

Copy the SSH Example Command And paste it into The CMD of the Downloads Folder To connect because The private key is Present in the Download folder, which is the Pem file

It will ask for permission for Yes, No, or Fingerprint.

Bingo It got connected to your terminal. You can ace it.

  1. Navigate to Instances: In the EC2 Dashboard, under the "Instances" section, you will find the instance you just launched.

  2. Connect to Your Instance: Select your instance and click "Connect." Follow the provided instructions for connecting to your instance. For Linux instances, you'll use SSH with the private key file (.pem), and for Windows instances, you'll use RDP.

๐Ÿ˜Š Thank you so much for reading my blog! ๐Ÿ˜Š I hope you found it helpful and informative. If you did, please ๐Ÿ‘ give it a like and ๐Ÿ’Œ subscribe to my newsletter for more of this type of content. ๐Ÿ’Œ

I'm always looking for ways to improve my blog, so please feel free to leave me a comment or suggestion. ๐Ÿ’ฌ

Thanks again for your support! ๐Ÿ˜Š

ย