DEV Community

Tomer Ben David
Tomer Ben David

Posted on • Updated on

VPC Primer - VPC, VPN, Endpoints, Subnets

We start with summary

VPC - Your own non real virtual private cloud.
VPN - Your own non real virtual secure network connection between VPC.
Subnets - Internal networks within your VPC.
Endpoints - Connect to externals aws services - external to your VPC.

VPC - It's all virtual

Virtual Private Cloud - Your own private cloud

VPC is virtual meaning it's not really a thing - it's virtual. So it's a private cloud but it's not really a private cloud because it's virtual but in your eyes you can think of it as a private cloud. It's your personal data-center.

VPN - It's also virtual not real

Virtual Private Network - Your own secure connection to VPC
This guy is also virtual its not real but you use VPN in order to interconnect VPN.

You have your actual applications in VPC

You have your own stuff like your own EBS and instances your actual applications in VPC but s3 or no it's on the outside.

What do you have in VPC you have mainly instances EBS but S3 although you could think it should be in VPC it's actually outside of it, so you can think of having in your VPC your nuts and balls of the servers and not the external services like S3.

Subnets in VPC

You can create subnets in VPC after all isn't it your own cloud?
Private subnets for your internal servers, public subnets for your external servers like web servers.

So as it's your cloud you can just go ahead and create private/public subnets

Connecting from one VPC to another

You connect from one VPC to another with VPN.

Endpoints

We said that S3 is external to your VPC so how do you connect to it?

You connect to s3 by creating an endpoint so an endpoint allows you to connect to other AWS resources external to your cloud external to your private cloud.

Default VPC

When you create an AWS account you get a default VPC so you already have one.

Summary

VPC - Your own non real virtual private cloud.
VPN - Your own non real virtual secure network connection between VPC.
Subnets - Internal networks within your VPC.
Endpoints - Connect to external to your VPC AWS services

Video

Top comments (0)