Skip to content

BenjaminBurton/AWS-VPC-Setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 

Repository files navigation

AWS-VPC-Setup

AWS Virtual Private Network + Load Balancer

Amazon AWS Cloud Practitioner Certification Challenges

AWS VPC

πŸ‘‹ πŸ‘‹ πŸ‘‹ πŸ‘‹ πŸ‘‹

#AWS Certified Cloud Practitioner Foundational

⭐ ⭐ ⭐

My Personal AWS VPC from scratch connecting subnets, creating Internet Gateway, Route Tables, Subnet Associations and ssh into the server.

Intro for project

Steps Involved:

  • βœ… Create 1 VPC in AWS Console

  • βœ… Create 2 subnets then attatch them to the VPC created

  • βœ… Give the subnets IPv4 CIDRs

  • βœ… Create internet gateway so we have internet

  • βœ… Attatch internet gateway to VPC

  • βœ… Go to VPC's main route table and edit the routes

  • βœ… give the destination the universal IP address and target the internet Gateway and save changes

  • βœ… go to subnet associations and add the 2 subnets created and save associations

  • βœ… now go to the EC2 (Virtual servers in the cloud) dashboard and create an Instance (launch instance)

  • βœ… name the server and choose a distrubution

  • βœ… create new key pair (if one isnt already available) if so select it

  • βœ… under networking settings edit and select the VPC and subnet created

  • βœ… enable auto-assign public IP address

  • βœ… ssh protocol should be TCP port 22

  • βœ… launch instance and repeat for 2nd instance

  • βœ… for windows it will be RDP instead of ssh and the port will be 3389

  • βœ… go to the instance you want to run and select connect

  • βœ… for the ssh client open a terminal on Apple (different for windows will document later)

  • βœ… cd into the folder the key pair is in and run the commands

  • βœ… run chmod 400 + name of key pair (to ensure key is not publicly visible)

  • βœ… run ssh -i "key pair name" ec2-user@ + IP given

  • βœ… select yes on the dialog prompt

  • βœ… you should see Amazon Linux 2 AMI logo if done correctly

  • βœ… run logout to close connection and get back to your shell

  • βœ… for windows server select instance and go to RDP client

  • βœ… select password and upload private key to decrypt

  • βœ… decrypt password

  • βœ… copy password

  • βœ… download remote desktop file

  • βœ… open download remote desktop file

  • βœ… paste password to launch instance

  • βœ… select yes to continue on pop up dialouge box

  • βœ… you should see your instance live

  • Figure how to ping from one server to another

  • Write a Blog Post on Hashnode about the experience.

My version of the code found Below

https://github.com/BenjaminBurton/AWS-VPC-Setup/blob/main/README.md

Load Balancer / Jump Server Setup

  • βœ… create load balancer using classic load balancer
  • βœ… name load balancer
  • βœ… attatch VPC inside create LB inside dropdown
  • βœ… add the subnets by selecting the plus icons next to them under available subnets Actions
  • βœ… next assign security groups
  • βœ… create a new security group (type http)
  • βœ… next configure security settings
  • βœ… next configure health check (ignore warning on page)
  • βœ… next add EC2 instance
  • βœ… select both instances created
  • βœ… next add tags
  • βœ… review and create
  • βœ… create

Infrastructure As Code (IaC)

  • ❌

Blog Post

  • ❌ Write about experience in Blog post on HashNode

Issues Encountered

  • ❌ Actively Finding resolution to Issue with pinging back and forth

  • ❌ Under Construction