Skip to Main Content
Amazon EC2 Cookbook
book

Amazon EC2 Cookbook

by Sekhar Reddy, Aurobindo Sarkar
November 2015
Intermediate to advanced content levelIntermediate to advanced
194 pages
4h 16m
English
Packt Publishing
Content preview from Amazon EC2 Cookbook

Creating and configuring VPC

In this section, we present the recipe to create and configure a VPC. You can assign a single Classless Inter-Domain Routing (CIDR) block to the VPC. The allowed block size is between a /28 (16 IP addresses) net mask and /16 (65536 IP addresses) net mask. Public and private subnets are specified to build multitier applications. To access the Internet from a private subnet, we have to use Network Address Translation (NAT) instance in the public subnet. Each subnet must be associated with a routing table. Each route in the routing table contains the destination CIDR network range and a target Internet gateway/virtual private gateway.

To access the Internet the EC2 instance must either have an Elastic IP (EIP) address ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Amazon EC2

Programming Amazon EC2

Jurg van Vliet, Flavia Paganelli
AWS SysOps Cookbook - Second Edition

AWS SysOps Cookbook - Second Edition

Eric Z. Beard, Rowan Udell, Lucas Chan

Publisher Resources

ISBN: 9781785280047Supplemental Content