Week 4

VPC - An analogy about shared resources

Public subnets and Internet Gateway

Private subnets and NAT

Endpoints and Security Groups

ALB

Auto Scaling

Architecture and Tradeoffs

Practice

Assignment

Cloud Track

Under construction

<aside> 🚧

This page is currently under construction. Please check back later.

</aside>

Section note: This section introduce the notion of subnets, internet gateway and routing

Ext article/inspiration https://medium.com/@hobballah.yasser/secure-access-to-private-ec2-instance-in-private-subnet-methods-and-best-practices-d4ee75a506d3#a51e

https://medium.com/@gouravmishra624/how-to-securely-upgrade-software-on-ec2-instances-in-a-private-subnet-a-practical-guide-ab070057e202


So far we have seen that:

For an EC2 instance to be able to be given an IP address you will need to split your VPC into separates blocks tied to Availability Zones called Subnets.

In this section we will see how to setup your first subnet with internet access and spin up a EC2 instance in it.

By the end of this section you will have this:

Part1_IG.drawio.png

Step 1 create a VPC and your first subnet with an EC2 machine

Create a new VPC

Create a new subnet

CIDR in depth

https://mxtoolbox.com/SubnetCalculator.aspx https://cidr.xyz

https://www.youtube.com/watch?v=KiWXRL-2TnY

Create a new EC2 instance (link to previous week)

Step 2 Create an Internet Gateway

Step 3 Update the routing table

Sum up


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

CC BY-NC-SA 4.0 Icons

Built with ❤️ by the HackYourFuture community · Thank you, contributors

Found a mistake or have a suggestion? Let us know in the feedback form.