JTCyberTech / Cybersecurity-Home-Labs

5 stars 1 forks source link

4. Launch Elastic Compute Cloud Instance (EC2) #8

Open JTCyberTech opened 12 months ago

JTCyberTech commented 12 months ago

Create and Configurate EC2 (Amazon Elastic Compute Cloud)

Amazon Elastic Compute Cloud (EC2) on AWS is utilized for its ability to provision scalable virtual computing resources on-demand, eliminating the need for upfront hardware investments. This flexibility is invaluable for organizations with fluctuating workloads or those looking to rapidly deploy applications. EC2 offers diverse instance types tailored to different use cases, providing a wide range of computing, memory, and storage capabilities, making it an essential choice for businesses seeking cost-effective and adaptable cloud solutions.

Download PuTTY Configuration and Key Generator on Windows

  1. Navigate to PuTTY download site by searching PuTTY download on Google or Click Here

  2. To know which version should be download, you go to command prompt and type in: Systeminfo

  3. See what is the System Type

CMD System Type

4. Click the version under MSI (Windows Installer)

Create and Launch EC2

1. Navigate to EC2 in AWS by searching EC2 on the search bar. - Click on Launch Instance

EC2 Interface

2. Launch an instance: - Name the instance - Use the Amazon Linux - Make sure the AMI and Instance type is on Free Tier - Create new key pair: - Name the key pair - Click on create key pair and it will save the private key into .pem - Check the box: Allow HTTPS traffic from the internet - Check the box: Allow HTTP traffic from the internet - Launch Instance

Creating a Key Pair

Instance Configuration

3. Open up PuTTY Key Generator - Click on Conversions on the top > Import key > Use the key pair that's downloaded. - Click on Save private key in the form of .ppk

PuTTY Key Generator

4. Open up PuTTY Configuration - Need the Host Name or IP Address - Navigate back to AWS and click on the EC2 that's created, copy the Public IPv4 DNS - Paste in the Host Name or IP Address

EC2 IPv4

PuTTY Configuration

5. In PuTTY Configuration - Nagivate to SSH > Auth > Credentials - Browse the Private key that was just created as .ppk > open

PuTTY Configuration

6. PuTTY Configuration will turn into a Command Line Interface - In order to find out what to login as > Nagivate back to AWS EC2 and click connect. - The Username: ec2-user



7. Successfully login the EC2



8. Terminate the EC2 to save resources. - Click on Instance State > Terminate Instance



Create and Launch VM Windows in AWS

1. Navigate to EC2 in AWS by searching EC2 on the search bar. - Click on Launch Instance 2. Launch an instance: - Name the instance - Use the Windows - Make sure the AMI and Instance type is on Free Tier - Create new key pair: - Name the key pair - Click on create key pair and it will save the private key into .pem - Check the box: Allow HTTPS traffic from the internet - Check the box: Allow HTTP traffic from the internet - Launch Instance 3. On your Windows menu search Remote Desktop Connection



4. Click on the new Window Instance that had just been created > connect - Click on RDP client > Download remote desktop file



5. Go to the Remote Desktop Connection - Connect Settings > open > click on the thing you downloaded on step 4. > connect



6. To get the password, navigate back to AWS and click on get password - Click on upload private key file and open the .ppk file you download on step 2. - Click on Decrypt Password - Copy and paste password into the Window security window



7. Successfully created a VM with EC2



8. Terminate the EC2 to save resources. - Click on Instance State > Terminate Instance