Skip to main content

Creating a VPC - Part 1

A VPC is your very own private cloud within AWS.  Think of it as a DataCenter that you build with your own specifications and will be the place you build and deploy your cloud environment.

In this article, I will teach you how to create a Custom VPC within AWS.  Please note that this is different from the default VPCs that AWS creates for you when you setup an account.

What you will need:
1. An AWS account (Creating and AWS Free Tier account)
2. Location of your target end users
3. Number of Private and/or Public subnets required
4. A Network CIDR range of your choice depending on your requirements

There are 2 ways to create VPCs.
1. Using the VPC Wizard
2. Creating VPC from scratch

For demonstration purposes let us assume these requirements: 
1. End users are located in the US Northern Virginia
2. You need 1 Private subnet with outbound access to the internet and 1 Public subnet
3. CIDR 10.0.0.0/16


Method 1: Creating a VPC using the VPC Wizard

1. Login to the AWS management console using your Admin account.
2. Select your  location based on where your end users will be (US N. Virginia).
3. Click "Services", then scroll down to Network & Content Delivery
    and then click "VPC"
4. Since we are required to have a Private Subnet with outbound access to the
    internet, we will need a NAT Gateway.  NAT Gateways require an Elastic IP
    address which we need to setup first before launching the VPC Wizard.
    To set this up,  from the navigation pane choose "Elastic IPs"
5.  Click "Allocate new address" then just select "Amazon pool" then
     click "Allocate".  Click "Close" when done
6. Go back to the VPC Management Console.
7. In the VPC Management Console click on "Launch VPC Wizard"
8. You will now be presented with 4 options:
  1.     VPC with a Single Public Subnet
  2.     VPC with Public and Private Subnets
  3.     VPC with Public and Private Subnets and Hardware VPN
  4.     VPC with a Private Subnet Only and Hardware VPN Access
    Since in our requirements we need a Private and a Public subnet,
    we will choose option 2.
      Click "Select"
9.   Provide a name for your VPC.  In this case I named it: MyFirstVPC
10. Configure your Network CIDR blocks for the VPC and your subnets.
      Make sure to always allocate more available IP addresses than what is
      required for future expansions and to allow for autoscaling on your
      deployed instances.
      In this case, the VPC CIDR Block I chose is: 10.0.0.0/16
      Public CIDR block: 10.0.0.0/24
      Private CIDR block: 10.0.1.0/24
      I have also named my Public and Private subnets:
      MyPublicSN and MyPrivateSN.
      Regarding the Availability Zone to create the subnets on, I just left it with
      the defaults. But you can definitely specify which one depending on your
      strategic deployment.
      Next is you have to allocate the Elastic IP you created for the NAT Gateway.
      Click the "Elastic IP Allocation ID:" box and you will find the Elastic IP you
      have created from the list. Click it to select.
      You can leave the rest of the other settings on defaults unless you have a
      specific requirement for them.
      Click "Create VPC" after confirming your settings.  
 11. It may take a few moments to create your VPC.  Once it has been created,
       you will see a confirmation on the screen.


Comments

Popular posts from this blog

AWS AR & VR Services

The AR & VR category is all about Artificial Intelligence and Virtual Reality.  At the moment, there is only one service available in this category, but nevertheless is cutting edge technology. Sumerian        - Amazon Sumerian lets you create and run virtual reality (VR), augmented reality (AR), and 3D applications quickly and easily without requiring any specialized programming or 3D graphics expertise.  With Sumerian, you can build highly immersive and interactive scenes that run on popular hardware such as Oculus Rift, HTC Vive, and iOS mobile devices (support for Android ARCore coming soon).  For example, you can build a virtual classroom that lets you train new employees around the world, or you can build a virtual environment that enables people to tour a building remotely.  Sumerian makes it easy to create all the building blocks needed to build highly immersive and interactive 3D experiences including adding objects, and designing...

AWS IoT

The IoT or Internet of Things category is a collection of services that are specifically designed for the management and implementation of IoT technology.  These allows you to easily integrate IoT models or functions into your application. Below are the various IoT services available in this category. IoT Core        - AWS IoT provides secure, bi-directional communication between Internet-connected devices such as sensors, actuators, embedded micro-controllers, or smart appliances and the AWS Cloud. This enables you to collect telemetry data from multiple devices, and store and analyze the data. You can also create applications that enable your users to control these devices from their phones or tablets. IoT 1-Click       - AWS IoT 1-Click is a service that makes it easy for simple devices to trigger AWS Lambda functions that execute a specific action. Some examples of possible actions include calling technical support, reordering goods and ...

How to create an AWS free-tier account

Creating an AWS account isn't all that difficult.  This should be your 2nd step in your AWS journey.  The first being a clear familiarization of the various AWS services and their functions.  If you are not at all familiar with any of them, I would suggest you check out my previous posts which briefly discusses the various core services available in AWS then come back here to create your AWS account. When creating an AWS account you will need the following: A registered email address.   A credit card note: don't worry about fees.  creating the free tier account is totally free.  and there is a list of services that you will have free access to within their respective usage parameters.  Just be aware of these parameters as you can be charged if you go over the usage limit for the free tier account.   Now that you have the requirements available, lets begin creating your account.   First click this:  AWS Free Tier and then...