Building a VPC in AWS

 



For our very last lab about the network, we were given the following customer environment to build. By virtue of the fact the AWS management console GUI is constantly updated it meant that our task instructions were wholly out of date. However, this actually proved to only make it a far more involved and fun process - necessitating lots of troubleshooting when things had not spun up as expected.

I felt like I had learnt a lot more this way and for the benefit of my future self, I thought I would make some step by step notes (not necessarily in reference to the diagram above) to serve as prompts for any future cloud VPC's I'll be spinning up. Our challenge was to build the VPC as the diagram above. 
  1. Create an elastic IP.
    We will associate this later with our NAT gateway.
  2. Launch your VPC with a private class IP range without forgetting to specific how many availability zones (AZ) you want.
  3. Create and label your subnets, again specifying what AZ, as none are public at the point of creation!
  4. Create an Internet Gateway (IGW).
  5. Associate your IGW with the desired VPC.
  6. Create your NAT Gateway and put it in the subnet you labelled as public.
    Now you can associate the elastic IP we created at step one with our NAT Gateway.
  7. We now need to make two different route tables, distinguishing between our intentions with the subnets - public and private.
  8. For the private subnets, we set our route table to point towards the NAT Gateway.
  9. For the public subnets, we set our route table to point towards the IGW.
  10. Now make sure to associate each route table to the relevant subnets.
  11. Create security group allowing http traffic from anywhere on the internet (0.0.0.0/0).
  12. Associate your security group with your instance.
  13. Launch an EC2 instance with auto public-IP and insert user data to auto-install the apache webserver app! Simples 😆

Popular posts from this blog

Network Fundamentals for the Cloud

Familiarizing with the Command Line Interface

Security Fundamentals for the Cloud

CLI Fundamentals for the Cloud

DataDog, a Cloud Analytics & Monitoring application

A brief introduction to Databases and MySQL

AWS CodeCommit + Creating a CI/CD pipeline

Future Orientation: Tips from a AWS re/Start Graduate

A brief introduction to AWS Cloud Adoption Framework (CAF) and Well-Architected Framework (WAF)