How to Choose a VPC CIDR Block on AWS - the Size (/16 to /28), the Range (10.x, 172.16 or 192.168), What It Must Never Overlap, and an Allocation Plan for a Multi-Account Organisation
TL;DR
- A VPC CIDR block is between /16 (65,536 addresses) and /28 (16 addresses), and its size cannot be changed after creation. You can only add more blocks: 5 per VPC by default, 50 at most. Size is not billed (a public IPv4 address is $0.005 per hour, private ones are not on the price list), so a /16 costs the same as a /20.
- Choose in this order: what must it never overlap, how many addresses do I need, which size holds that, where does the block go. Most bad VPC ranges come from doing step four first and typing
10.0.0.0/16. - Never reuse the data centre and office ranges, another VPC you may ever connect to,
172.31.0.0/16(every default VPC),172.17.0.0/16(Docker, SageMaker, Cloud9) or192.168.0.0/24and192.168.1.0/24(home routers behind your VPN users). - Size from the workload: hosts per tier times 2, plus 5 reserved addresses per subnet, rounded up to a power of two, times the zones. On EKS every pod counts as a host. My example lands on a /17; a /20 holds a small three-tier service and nothing more.
- For many accounts, reserve one range for AWS and split it by region, environment and VPC.
10.64.0.0/10gives 8 regions of /13, 4 environments of /15 each, and 32 VPCs of /20 per environment. terraform plancatches a /15 or a /29, but it accepted169.254.0.0/16, a block AWS forbids. The provider checks the format and the size, the AWS API checks the rest.- Not your question? If the slash notation itself is new, start with what is CIDR; if two networks already overlap, go to overlapping CIDR blocks and the four ways out.
The Create VPC form asks for an "IPv4 CIDR", and that is the one answer I cannot fix later without rebuilding. The planner FAQ has a group of questions that are all this one question in different words: which block, how big, why not simply 10.0.0.0/16. This post is my answer as a method. Every output below comes from a run on 2026-11-30 with Terraform v1.16.2, the AWS provider v6.74.0 and Python 3.12.10. I did not create anything in an AWS account for it: the commands are terraform plan, terraform console and Python, and I say so where only the AWS API can give the final answer.
Table of Content
- The four decisions
- The limits AWS sets
- Step 1 - list what the block must never overlap
- Step 2 - count the addresses
- Step 3 - pick the size
- Step 4 - pick the range
- A plan for a multi-account organisation
- Guard the choice in Terraform
- What broke when I ran this
- Conclusion
1. The four decisions
A VPC range is two decisions that look like one: how big and where. Both depend on things outside the VPC, which is why I start with an inventory and end with the block itself.
- Inventory. Which ranges exist already, in the company and around it, that this VPC may one day have to talk to?
- Count. How many addresses does the workload need per zone and per tier, with growth?
- Size. Which prefix between /16 and /28 holds that count?
- Place. Which free block of that size do I take, and where do I record it?
The rest of the post is one section per step, then the same method stretched over a whole organisation.
2. The limits AWS sets
These are the hard rules. Everything else in this post is judgement; this table is not.
| Rule | Value | Source |
|---|---|---|
| Largest VPC IPv4 block | /16, 65,536 addresses | VPC CIDR blocks |
| Smallest VPC IPv4 block | /28, 16 addresses | same page |
| Resize an existing block | not possible: "You cannot increase or decrease the size of an existing CIDR block" | same page |
| IPv4 blocks per VPC | 5 by default, adjustable up to 50; the primary block counts | Amazon VPC quotas |
| Remove the primary block | not possible | VPC CIDR blocks |
| Forbidden blocks | 0.0.0.0/8, 127.0.0.0/8, 169.254.0.0/16, 224.0.0.0/4 | VPC CIDR blocks |
| Subnet size | /28 to /16 | Subnet CIDR blocks |
| Reserved in every subnet | 5 addresses: the first four and the last | same page |
| Subnets per VPC | 200 by default, adjustable | Amazon VPC quotas |
| VPCs per Region | 5 by default, adjustable | Amazon VPC quotas |
| Peering with an overlapping block | refused | VPC peering basics |
Two of these rows decide everything. The size is permanent, so an undersized VPC is fixed by adding a second block or by migrating, never by editing. And overlap is permanent too: the peering page says "You cannot create a VPC peering connection between VPCs that have matching or overlapping IPv4 or IPv6 CIDR blocks", and it adds that this holds even when you only intend to use the parts that do not overlap.
AWS recommends a block from the private ranges of RFC 1918: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. A publicly routable block is allowed, but then the VPC cannot reach the real owners of those addresses on the internet, so I treat "private range" as a rule.
3. Step 1 - list what the block must never overlap
Before I look at a single prefix I write down every range that is already taken. For a company this is the data centres, the offices, the VPN pools, the partner networks and every existing VPC. Then come four ranges that are taken in almost every environment, whether anybody wrote them down or not:
| Range | Who already uses it | What happens if my VPC uses it too |
|---|---|---|
172.31.0.0/16 | every default VPC, in every Region of every account (default VPC components) | no peering with any default VPC; AWS also refuses it as a secondary block in a 172.16.0.0/12 VPC |
172.17.0.0/16 | Docker's default bridge; the AWS page names Cloud9 and SageMaker AI as users of it | a container on the default bridge sends that traffic to the bridge, not to the VPC; AWS says "To avoid conflicts, don't use this range" |
192.168.0.0/24, 192.168.1.0/24 | home routers of the people on your client VPN | their laptop routes those addresses to the living room, not to the VPC |
10.0.0.0/16 | the first example in most tutorials, including the AWS table of example blocks | the chance that the other side of your first peering uses it too is high |
The check itself is three lines of Python. I gave it an inventory for an imaginary company (a data centre in 10.0.0.0/12, offices in 192.168.0.0/16, a partner VPN in 10.20.0.0/16) plus the usual suspects, and six candidate blocks. The script prints three parts; this is the second, and the other two follow in sections 4 and 5:
1$ python check.py
2-- 2. candidates against the ranges already in use
310.0.0.0/16 rfc1918=True OVERLAPS data centre 10.0.0.0/12
410.20.0.0/20 rfc1918=True OVERLAPS partner VPN 10.20.0.0/16
5172.17.0.0/16 rfc1918=True OVERLAPS Docker bridge, SageMaker, Cloud9 172.17.0.0/16
6192.168.1.0/24 rfc1918=True OVERLAPS office LAN and home routers 192.168.0.0/16
710.64.0.0/16 rfc1918=True free
8100.64.0.0/16 rfc1918=False free
The core of the script is ipaddress.ip_network(candidate).overlaps(ip_network(taken)). If you would rather not write it, the VPC Subnet Planner has an "existing networks" box that does the same; with the inventory above and 10.20.0.0/16 as the VPC, its design review says "Overlaps 1 existing network: 10.20.0.0/16" and the score drops from 100 to 75. The full story of what each cloud refuses when ranges collide is in the overlap post.
4. Step 2 - count the addresses
Now the size, from the workload and not from habit. The arithmetic per subnet is:
hosts x growth factor + 5 reserved, rounded up to the next power of two.
The 5 are the addresses AWS keeps in every subnet (network, router, DNS, one for future use, broadcast); the usable-addresses post has the table per prefix. The growth factor I use is 2. The count of hosts is where people go wrong, because a "host" is anything that takes an address: instances, load balancer nodes, NAT gateways, interface endpoints, RDS instances, Lambda network interfaces, and on EKS with the VPC CNI every single pod. The EKS documentation puts it plainly: "The VPC must have a sufficient number of IP addresses available for the cluster, any nodes, and other Kubernetes resources that you want to create" (EKS network requirements).
Here is the count for one three-tier service with an EKS cluster in the private tier, in three zones:
1-- 3. one VPC, counted from the workload
2public (load balancers, NAT) 60 hosts x2 + 5 reserved = 125 -> /25 (128 addresses, 123 usable) x 3 zones
3private (EKS nodes and pods) 1500 hosts x2 + 5 reserved = 3005 -> /20 (4,096 addresses, 4,091 usable) x 3 zones
4database 40 hosts x2 + 5 reserved = 85 -> /25 (128 addresses, 123 usable) x 3 zones
5subnets total 13,056; doubled for a spare zone and new tiers 26,112 -> VPC /17 (32,768 addresses)
1,500 addresses per zone sounds like a lot until you remember it is nodes plus pods; 50 nodes with 29 pods each is already there. The private tier is 94% of the subnet total. That is normal, and it is why EKS clusters run out of IP addresses long before the VPC looks full on paper.
The last line doubles the subnet total once more. That is not padding for its own sake: it is the fourth zone, the tier nobody has asked for yet (a firewall subnet, a Transit Gateway attachment subnet, a second cluster) and the fact that three zones never divide a power of two evenly, which section 9 shows with a real error.
5. Step 3 - pick the size
With a count in hand the size is a lookup:
1-- 1. what each VPC size holds
2prefix addresses /24 subnets /20 subnets
3/16 65,536 256 16
4/17 32,768 128 8
5/18 16,384 64 4
6/19 8,192 32 2
7/20 4,096 16 1
8/21 2,048 8 0
9/22 1,024 4 0
10/23 512 2 0
11/24 256 1 0
12/28 16 0 0
And this is how I read it:
| VPC size | What fits in three zones | What I would use it for |
|---|---|---|
| /16 | four /20 private subnets, public and database /24s, and 72% still free | a production VPC with EKS, or anything I cannot predict |
| /18 | three /21 private subnets (2,043 usable each) plus small public and database subnets | a service with a few hundred hosts per zone |
| /20 | three /23 private subnets (507 usable each), /26 public and database subnets | one small service, a sandbox, an account that gets many VPCs |
| /24 | /27 or /28 subnets | an inspection, egress or endpoint VPC with a fixed number of interfaces |
| /28 | one subnet of 11 usable addresses | nothing I would build on |
Those rows are not estimates. I laid each one out in the planner, and the links open the exact plan. The /16 with public /24, private /20 and database /24 subnets in three zones plus a reserved fourth slot (open this plan) uses 28% of the block and leaves 10.64.72.0/21, 10.64.80.0/20, 10.64.96.0/19 and the whole upper half 10.64.128.0/17 free. The /20 is a different animal (open this plan); this is the planner's own Markdown export for it:
| Name | Tier | Zone | CIDR | Range | Usable |
|---|---|---|---|---|---|
| private-a | private (Private) | a | 10.64.16.0/23 | 10.64.16.0 - 10.64.17.255 | 507 |
| private-b | private (Private) | b | 10.64.18.0/23 | 10.64.18.0 - 10.64.19.255 | 507 |
| private-c | private (Private) | c | 10.64.20.0/23 | 10.64.20.0 - 10.64.21.255 | 507 |
| public-a | public (Public) | a | 10.64.24.0/26 | 10.64.24.0 - 10.64.24.63 | 59 |
| public-b | public (Public) | b | 10.64.24.64/26 | 10.64.24.64 - 10.64.24.127 | 59 |
| public-c | public (Public) | c | 10.64.24.128/26 | 10.64.24.128 - 10.64.24.191 | 59 |
| database-a | database (Database) | a | 10.64.25.0/26 | 10.64.25.0 - 10.64.25.63 | 59 |
| database-b | database (Database) | b | 10.64.25.64/26 | 10.64.25.64 - 10.64.25.127 | 59 |
| database-c | database (Database) | c | 10.64.25.128/26 | 10.64.25.128 - 10.64.25.191 | 59 |
| free | - | - | 10.64.26.0/23 | - | 512 addresses |
| free | - | - | 10.64.28.0/22 | - | 1,024 addresses |
507 addresses per zone for everything in the private tier. That runs a handful of services on EC2 or Fargate comfortably and an EKS cluster badly. The review for this plan says 63% allocated and warns that 640 addresses are alignment padding, which brings me to the rule I follow: when in doubt between two sizes, take the bigger one. Size is not what you pay for: the VPC pricing page bills a public IPv4 address at $0.005 per hour and lists no charge for private ones, so a /16 costs the same as a /20. What the review does price is the NAT gateways, "3 zones = about $99 per month before data", and that number depends on the zones, not on the prefix. A VPC that is too big has never paged anybody. The only thing that limits generosity is the organisation's total range, and that is section 7.
6. Step 4 - pick the range
Three private ranges, and they are not equal:
| Range | Addresses | /16 VPCs it holds | My view |
|---|---|---|---|
10.0.0.0/8 | 16,777,216 | 256 | the only one big enough for an organisation; use it, but not from the bottom |
172.16.0.0/12 | 1,048,576 | 16 | workable for a small estate; 172.17.0.0/16 and 172.31.0.0/16 are already spoken for |
192.168.0.0/16 | 65,536 | 1 | a single /16; collides with home and office networks; I avoid it for VPCs |
So the answer to "which range" is nearly always "somewhere in 10.0.0.0/8, away from 10.0.0.0/16, in a part nobody else in the company uses". In the example I reserve 10.64.0.0/10 for AWS, because the imaginary data centre lives in 10.0.0.0/12.
The range also decides what you can add later. A secondary block cannot come from just anywhere; this is the restriction table from the VPC CIDR blocks page, shortened:
| Primary block is in | You cannot add | You can add |
|---|---|---|
10.0.0.0/8 | anything from 172.16.0.0/12 or 192.168.0.0/16; 198.19.0.0/16 | other 10.x blocks, publicly routable blocks, 100.64.0.0/10 |
172.16.0.0/12 | anything from 10.0.0.0/8 or 192.168.0.0/16; 172.31.0.0/16; 198.19.0.0/16 | other 172.16.0.0/12 blocks, publicly routable blocks, 100.64.0.0/10 |
192.168.0.0/16 | anything from 10.0.0.0/8 or 172.16.0.0/12; 198.19.0.0/16 | other 192.168.x blocks, publicly routable blocks, 100.64.0.0/10 |
Every added block must be /16 to /28, must not overlap a block already on the VPC or on an active peer, and must not be the same as or larger than a destination in one of the VPC's route tables. A VPC that starts in 192.168.0.0/16 can therefore never grow into 10.x: its whole private future is the 65,536 addresses of that one /16 plus the shared address space 100.64.0.0/10 (RFC 6598). That alone is a reason to start in 10.0.0.0/8.
7. A plan for a multi-account organisation
One VPC is a choice. Fifty accounts are an allocation problem: every team needs a block, no two may overlap, and nobody should have to ask a spreadsheet owner which one is free. The trick is to make the address itself say where it belongs.
I split in three levels, and terraform console does the arithmetic. cidrsubnets takes a block and a list of extra prefix bits (function reference), and cidrsubnet returns one numbered block (function reference):
1> cidrsubnets("10.64.0.0/10", 3, 3, 3, 3)
2tolist([
3 "10.64.0.0/13",
4 "10.72.0.0/13",
5 "10.80.0.0/13",
6 "10.88.0.0/13",
7])
8> cidrsubnets("10.64.0.0/13", 2, 2, 2, 2)
9tolist([
10 "10.64.0.0/15",
11 "10.66.0.0/15",
12 "10.68.0.0/15",
13 "10.70.0.0/15",
14])
15> [for i in range(4) : cidrsubnet("10.64.0.0/15", 5, i)]
16[
17 "10.64.0.0/20",
18 "10.64.16.0/20",
19 "10.64.32.0/20",
20 "10.64.48.0/20",
21]
22> cidrsubnet("10.64.0.0/15", 5, 31)
23"10.65.240.0/20"
| Level | Bits added | Blocks | Size of each | Example |
|---|---|---|---|---|
| AWS range | - | 1 | /10, 4,194,304 addresses | 10.64.0.0/10 |
| Region | 3 | 8 | /13, 524,288 | Region 1 = 10.64.0.0/13, Region 2 = 10.72.0.0/13 |
| Environment | 2 | 4 per region | /15, 131,072 | production = 10.64.0.0/15, non-production = 10.66.0.0/15 |
| VPC | 5 | 32 per environment | /20, 4,096 | first = 10.64.0.0/20, last = 10.65.240.0/20 |
Three properties make this worth the effort:
- One route per region and per environment. Everything in Region 1 is
10.64.0.0/13, and all of its production is10.64.0.0/15. A firewall rule, a Transit Gateway route or an on-premises route needs one line, not one per VPC. The Transit Gateway post shows how much that shortens the route tables. - The address answers "whose is this?"
10.66.x.xin a flow log is non-production in Region 1 without looking anything up. - It runs out visibly. 32 VPCs of /20 per environment is the limit. If production needs /16 VPCs, a /15 holds exactly two, and I would know on day one that the regional block has to be a /12 instead of a /13.
That last point is the real sizing question for an organisation: count the VPCs per environment and region, multiply by the VPC size, round up, and double it. 40 accounts with one /20 production VPC each need 163,840 addresses, more than a /15; the next size, a /14, holds 64 of them. Do this sum before the first VPC exists, because renumbering region blocks later means renumbering everything.
The record of who got which block should not be a wiki page. AWS has a service for it: Amazon VPC IP Address Manager, "a VPC feature that makes it easier for you to plan, track, and monitor IP addresses for your AWS workloads", where the levels above become pools and a new VPC asks the pool for its block. Check the price before you plan around it: on the VPC pricing page the Free Tier covers a single Region and account and lists private IPv4 management as not available, and the Advanced Tier, which is the one that shares pools across accounts, costs $0.00027 per hour for each active IP address it manages. For 1,000 active addresses that is $0.27 per hour, about $197 per month at 730 hours. Until that is set up, or if that bill is not worth it for a small estate, the tree lives in one Terraform file in the account that owns the organisation, and every VPC module reads its block from there.
8. Guard the choice in Terraform
A plan nobody enforces lasts until the first Friday afternoon. I put the rules into the variable itself, so a wrong block fails in terraform plan on the engineer's laptop and not in a review (custom validation rules):
1variable "vpc_cidr" {
2 type = string
3 description = "IPv4 block for this VPC, taken from the organisation's AWS range."
4
5 validation {
6 condition = can(cidrhost(var.vpc_cidr, 0)) && try(cidrhost(var.vpc_cidr, 0) == split("/", var.vpc_cidr)[0], false)
7 error_message = "vpc_cidr must be a network address in CIDR notation, for example 10.64.0.0/20."
8 }
9
10 validation {
11 condition = try(tonumber(split("/", var.vpc_cidr)[1]) >= 16 && tonumber(split("/", var.vpc_cidr)[1]) <= 24, false)
12 error_message = "vpc_cidr must be between /16 and /24. AWS allows down to /28, but a VPC that small cannot hold three zones of subnets."
13 }
14
15 validation {
16 condition = try(cidrhost("${split("/", var.vpc_cidr)[0]}/10", 0) == "10.64.0.0", false)
17 error_message = "vpc_cidr must sit inside 10.64.0.0/10, the range reserved for AWS. Everything else belongs to the data centres, the offices or the default VPCs."
18 }
19}
The third rule is the interesting one. Terraform has no "is this block inside that block" function, so I take the first address of the candidate, apply the /10 mask of the AWS range to it and compare the result with the start of the range. In the console, cidrhost("10.70.16.0/10", 0) returns "10.64.0.0", so 10.70.16.0 is inside; for 192.168.16.0 the same call returns 192.128.0.0 and the rule fails. Two runs, blank lines removed:
1$ terraform plan -var vpc_cidr=10.64.0.0/26
2Planning failed. Terraform encountered an error while generating this plan.
3Error: Invalid value for variable
4 on variables.tf line 1:
5 1: variable "vpc_cidr" {
6 ├────────────────
7 │ var.vpc_cidr is "10.64.0.0/26"
8vpc_cidr must be between /16 and /24. AWS allows down to /28, but a VPC that
9small cannot hold three zones of subnets.
10This was checked by the validation rule at variables.tf:10,3-13.
11
12$ terraform plan -var vpc_cidr=192.168.16.0/20
13Planning failed. Terraform encountered an error while generating this plan.
14Error: Invalid value for variable
15 on variables.tf line 1:
16 1: variable "vpc_cidr" {
17 ├────────────────
18 │ var.vpc_cidr is "192.168.16.0/20"
19vpc_cidr must sit inside 10.64.0.0/10, the range reserved for AWS. Everything
20else belongs to the data centres, the offices or the default VPCs.
21This was checked by the validation rule at variables.tf:15,3-13.
A good block, 10.64.16.0/20, plans cleanly. The guard does not know whether another team already took that /20; that part needs the shared file or IPAM from section 7. The terraform console post has more of these one-line CIDR checks.
9. What broke when I ran this
Four things did not go the way I expected on 2026-11-30, and each one changed something in the sections above.
The provider stops a /15 and a /29, with the same message. With the plain aws_vpc resource and no validation of my own, the AWS provider v6.74.0 refuses both ends of the range during plan, before any API call:
1$ terraform plan -var vpc_cidr=10.64.0.0/15
2Planning failed. Terraform encountered an error while generating this plan.
3Error: expected "cidr_block" to contain a network Value with between 16 and 28 significant bits, got: 15
4 with aws_vpc.main,
5 on main.tf line 26, in resource "aws_vpc" "main":
6 26: cidr_block = var.vpc_cidr
7
8$ terraform plan -var vpc_cidr=10.64.0.0/29
9Planning failed. Terraform encountered an error while generating this plan.
10Error: expected "cidr_block" to contain a network Value with between 16 and 28 significant bits, got: 29
11 with aws_vpc.main,
12 on main.tf line 26, in resource "aws_vpc" "main":
13 26: cidr_block = var.vpc_cidr
14
15$ terraform plan -var vpc_cidr=10.64.1.0/16
16Planning failed. Terraform encountered an error while generating this plan.
17Error: expected cidr_block to contain a valid network Value, expected 10.64.0.0/16, got 10.64.1.0/16
18 with aws_vpc.main,
19 on main.tf line 26, in resource "aws_vpc" "main":
20 26: cidr_block = var.vpc_cidr
The third run is worth a second look: 10.64.1.0/16 is a host address inside 10.64.0.0/16, not a network, and the error even tells you the block it expected.
The provider did not stop a forbidden block. I then planned 169.254.0.0/16, which the AWS documentation lists under "You can't specify the following CIDR blocks", and 100.64.0.0/16. Both produced a normal plan with + cidr_block = "169.254.0.0/16" and no error. For 100.64.0.0/16 that is correct, AWS permits it. For the link-local block it means the plan is green and the apply is not. I did not apply it, so I cannot show the API's wording; the point is that a passing terraform plan proves the format and the size, nothing more. Forbidden ranges, overlaps with a peer and the secondary-block restrictions are checked by AWS at apply time. That is why the guard in section 8 pins the block to a known-good range instead of trying to list the bad ones.
My own test value failed two rules at once. The first block I threw at the guard to test the "outside the AWS range" rule was 192.168.10.0/20. It came back with two errors, the range rule and the network-address rule, because 192.168.10.0/20 is not a network either: a /20 starts at a multiple of 16 in the third octet, so the network is 192.168.0.0/20. I had to change the test to 192.168.16.0/20 to see the one error I wanted. If I mistype this while writing a post about it, a rule that catches it in plan is worth its six lines.
Three zones never fit a power of two. In the planner I first tried the /20 VPC with /22 private subnets: three of them are 3,072 addresses, comfortably less than 4,096. The planner refused the public and database tiers with "a /24 block does not fit in 10.64.16.0/20. Shrink the tier, use fewer zones, or grow the network." Three /22 subnets kept as one contiguous block occupy the four-slot /20 that contains them, which is the entire VPC. The same thing happens one size up: the planner's default three-tier layout with /20 private subnets, tried in a /18, fails with "a /22 block does not fit in 10.64.0.0/18" for the public and database tiers, because the three /20s take the whole /18. And cidrsubnet("10.64.0.0/15", 5, 32) fails in the console with "prefix extension of 5 does not accommodate a subnet numbered 32", the same wall from the other side. So I plan every tier and every level with four slots, not three, and the fourth is the spare zone. It is also the reason the sizing in section 4 doubles the total at the end.
10. Conclusion
The checklist I would hand to somebody creating a VPC tomorrow:
- Write down every range in use: data centres, offices, VPN pools, partners, existing VPCs, plus
172.31.0.0/16,172.17.0.0/16and the home-router /24s. - Count hosts per tier and zone, pods included; multiply by 2, add 5 per subnet, round up, and plan four zone slots.
- Pick the prefix that holds twice the subnet total; between two sizes take the larger. /16 is the ceiling, and it cannot be changed later.
- Take the block from
10.0.0.0/8, from the part reserved for AWS, by region, environment and VPC, and record it where the next person will look. - Put the size and the range into a Terraform validation, and remember that only
applyasks AWS.
To lay out the subnets inside the block you just chose, with the reserved addresses subtracted and Terraform or CloudFormation as output, open the VPC Subnet Planner; to build the VPC by hand first, AWS VPC, Part 5 walks through the public and private subnets, the NAT gateway and the route tables.
Did this save you a debugging session? Stay in the loop -
- Subscribe on YouTube - every post here has a screen-recorded companion video.
- Code on GitHub - the repositories, Terraform and scripts behind these posts.
AWS step by step series -
- Part-1 : AWS IAM user - create a user, group, policy, access keys and MFA
- Part-2 : AWS Organizations - multi-account setup, OUs and SCPs
- Part-3 : AWS assume IAM role - trust policy, switch role in console and CLI
- Part-4 : How to launch an EC2 instance - key pair, security group, SSH
- Part-5 : AWS VPC - public and private subnets, Internet Gateway, NAT Gateway, route tables
- Part-8 : EC2 launch template - versions, default version, source template, SSM parameter AMI
- Part-10 : EC2 Auto Scaling - launch template, Auto Scaling group, target tracking, ALB
- Part-11 : AWS WAF - web ACL, managed rules, rate limiting, geo blocking
- Part-12 : AWS VPC Peering - connect two VPCs, routes, security groups, DNS
- Part-13 : AWS Transit Gateway - hub-and-spoke for many VPCs and on-premises
- Part-14 : AWS NAT Gateway deep dive - public vs private, limits, cost, troubleshooting
- Part-15 : Amazon Route 53 - hosted zones, records, alias, routing policies, health checks
- Part-16 : AWS security groups - inbound and outbound rules, stateful, referencing, quotas
- Part-16 : AWS Certificate Manager - free TLS certificates for ALB, CloudFront and API Gateway
- Part-17 : AWS Lambda - function URLs, environment variables and layers
- Part-18 : Network Load Balancer - setup, and ALB vs NLB
- Part-19 : VPC endpoints - gateway and interface endpoints (PrivateLink) instead of NAT
- Part-20 : AWS PrivateLink - publish your own service with an endpoint service and NLB
- Part-20 : Amazon EBS volumes - types, attach, mount, resize, snapshots, encryption
- Part-21 : VPC Flow Logs - CloudWatch Logs, S3, record format, Logs Insights, Athena
- Part-21 : EC2 Spot Instances - pricing, interruptions, mixed instances groups
- Part-23 : AWS Global Accelerator - static anycast IPs in front of ALBs in two regions, traffic dials, weights
- Part-24 : AWS Control Tower - landing zone, controls, Account Factory, Identity Center
- Part-25 : AWS Cloud WAN - global network, core network policy, dev/prod/shared segments, tag-based attachments across three regions
Networking fundamentals -
- What is a VPC and a subnet? AWS networking in five minutes
- What is CIDR? Calculate IP ranges for VPCs and subnets
- VPC Subnet Planner - the free tool I use to size the VPC and subnet CIDRs in every part of this series (AWS, Azure, GCP rules built in)
- What is NAT? Static NAT, dynamic NAT and PAT explained
More AWS guides -
- What is AWS CloudFormation? Templates, stacks, change sets, drift, StackSets
- Learn AWS S3 - the complete course
- AWS API Gateway - REST API with Lambda, authorizers, Terraform
- AWS Advanced Networking Specialty (ANS-C01) - course companion
- AWS ECS and Fargate - how to deploy a Docker container
- AWS S3 - how to host a static website
- Terraform create EC2 instance on AWS
- Terraform AWS IAM - users, roles and policies
- Terraform and AWS multi-account setup
- Terraform - setting up an ALB and SSL