Launching VPC Resources

Ready... Set... Launch!

Introducing Today's Project!

What is Amazon VPC?

Amazon VPC is an isolated virtual machine and it is useful because it serves as a cost effective way of provisioning our compute/application on the internet.

How I used Amazon VPC in this project

I used Amazon VPC to provision an EC2 server instance

One thing I didn't expect in this project was...

One thing I didn't expect in this project was learning how to setup my VPC basics quicker with VPC resource map

This project took me...

This project took me 3 hours

Setting Up Direct VM Access

Directly accessing a virtual machine means to log into and manage the operating system or software of a machine as if it is right in front of me, but over the internet.

SSH is a key method for directly accessing a VM

SSH traffic means a secure shell protocol, that ensures a safe communication between the remote instance and the user's machine.

To enable direct access, I set up key pairs

Key pairs are two cryptographic keys that helps engineers directly access their virtual machines like, EC2

A private key's file format means the format in which a secret key is saved, which depends on the application or software that wants to process the format. My private key's file format was 'pem' which stands for "privacy enhanced mail"

Launching a public server

I had to change my EC2 instance's networking settings by editing my vpc, from the default, to my preferred.

Launching a private server

My private server has its own dedicated security group because I need it to reduce the number of IP addresses from the internet, that has access to my private instance.

My private server's security group's source is my public security group which means that remote access is only allowed from resources that are part of the public security group

Speeding up VPC creation

I used an alternative way to set up an Amazon VPC! This time, I used VPC resource map, by clicking setup 'VPC and more'

A VPC resource map is an architectural layout that help users get quick understanding of a VPC

My new VPC has a CIDR block of 10.0.0.0/16. It is possible for my new VPC to have the same IPv4 CIDR block as my existing VPC because AWS VPC's are isolated by design, so there are no IP address conflicts as a result of matching CIDR blocks.

Speeding up VPC creation

Tips for using the VPC resource map

When determining the number of public subnets in my VPC, I only had two options: 0/1. This was because by design, each AZ is entitled to one public subnet, to groups all resources that should be accessed from the internet.

The set up page also offered to create NAT gateways, which are used to give private subnets access to the internet, while blocking all inbound access.

Explore this project