I’m in a large enterprise with 350+ AWS accounts. For many, we’ve mostly given each one its own account with its own VPC (most lift and shifted apps landed in one account and one VPC). VPCs are peered to TGW. Traffic in/out of VPC goes to GWLB endpoints for centralized inspection. We have centralized egress as well. Now that we’re deep into AWS, we’ve seen TGW is disproportionately expensive. Also the increased network hops from inspection in centralized VPC is leading to many apps having performance issues. Overall it’s left a bad taste in everybody’s mouth. Is our situation unusual? We’re thinking about adding VPC peerings between VPCs where it’s needed, and we’re coming up with some groupings to group multiple apps into the same VPC. I’m worried that many VPC peerings are going to make networking a mess. I’m starting to think that centralized multi-tenant VPCs with microsegmentation through subnets is the way to go instead. Break VPCs across security zones, and each app gets its own subnet. Any thoughts?
Similar situation eyeing doing the above with AWS IPAM.for subnet distribution and NACL/Routing rules to control segmentation and communication between workload subnets.
For the amount of VPCs, I think VPC peering will be a mess. You can’t elect a central VPC to act as a hub like Transit Gateway does because the routing is not transitive with peering:
“Amazon VPCs do not support transitive peering, meaning that you can’t communicate two VPCs that are not directly peered using a third VPC as transit. If you want all of your VPCs to communicate with each other using VPC peering, you will need to create 1:1 VPC peering connections between each of them. Alternatively, you can use AWS Transit Gateway or AWS Cloud WAN to act as a network transit hub.” https://docs.aws.amazon.com/whitepapers/latest/aws-vpc-connectivity-options/vpc-peering.html
Our infrastructure is much smaller but the idea of shared VPCs is still relevant. We have one VPC per environment type or tier like nonprod, staging and prod. In each VPC, you can do micro-segmentation using subnets, security groups and/or a product like, for instance, Cisco Secure Workload. In our case, most of the applications are in Kubernetes clusters with Cilium Network Policies.
But you can keep specialized VPCs for some purposes as well.
I saw that subnet sharing had some big discussions like 5-7 years ago but it feels like nobody mentions it anymore based on all the Googling I’ve done. It also seems like there’s a lot of AWS services that still aren’t compatible with it. I’ve had hopes for that too, but I fear that it might be something they added but it didn’t live up to the hype. I’d like to understand a real setup where someone succeeded with it. I initially thought about doing “big multitenant centralized VPCs in a central account, and you share subnets out to the various app accounts”. But I kept asking my AWS account team if this made sense and the SA made it sound like subnet sharing isn’t meant to be used for everything across the board, and more just where it’s needed. But that may just be lack of experience on his part, I’m, not sure. When people are succeeded at VPC sharing, is it “peer to peer” subnet sharing between application VPCs just where it’s needed, or is it the highly centralized approach where subnet sharing is your standard approach?
How many NAU are you working with here? Direct peering at this scale quickly becomes a nightmare, especially if you introduce multi-region The mesh of connections becomes almost unintelligible and you’ll be struggling under the weight of the cognitive overhead. Avoid if you can.
I like using Shared VPC in my environment, but EVERYONE will chime in with “it has problems at scale”. You could carve out VPCs per security zone like you said, centralize their deployment and share them to the accounts for IAM/resource segmentation. Since this would all be in one VPC, traffic between those apps wouldn’t be running up your TGW bill. You’d only be paying for traffic that leaves the VPC to other security boundaries.
I don’t like segmentation by subnets, since it wastes a lot of internal IP space in your VPC. Do you not trust Security Groups to segment your access? I would lean on Security Groups for segmenting traffic and develop some like audit automation to make sure people are scoping their groups properly. Subnets would be useful if you need predictable CIDRs for those apps, but it’s ugly to architect if you have a lot of applications.
Lastly, at your scale, reach out to your account team. You almost certainly have a solutions architect assigned to your account. Tap them to help you architect out of this. Make them earn that money you pay them every month.
First off think about if you were managing Cisco devices for 350 networks and having to manage that. Upgrades and HA would kill you. So a TGW is inexpensive in comparison IMO.
I’d go back to your account team and ask for an engagement with a specialist. Sounds like you are a decent sized AWS customer and they have the ability to pull in some really sharp folks for a meeting or two.
I’m not sure what answer you’re after with the NAU question (I’m not from the network team)- we’ve allocated a number of /16’s in AWS IPAM, and I’m sure there’s more available. I agree subnet per app will waste IPs, but I guarantee security team will shut down the idea of completely deferring to app owners dictating network policy through SGs even if mature guardrails were in place (there’s not). Microsegmentation by subnets will help with central firewall policies. For VPC peering, I’m not thinking full mesh, but just applying where it’s needed to alleviate hotspots. Maybe that’s just worse because of inconsistent networking? I already have terraform managing all the networking. If Terraform is managing all the route tables for me, then shouldn’t that relieve the cognitive burden? Trying to better enumerate/articulate all the different pain points if we add more VPC peering. I’ve had discussions with my account team, but I don’t feel like I’ve gotten strong answers. Feels like they’re just saying group up our VPCs into larger buckets (but still decentralized approach), and do VPC peering or subnet sharing on a case by case where it’s needed. I just wonder if he just hasn’t seen it done any other way so he’s recommending what he’s comfortable with. Hoping to hear from a wide variety of perspectives.
Yeah that’s understandable… this is the problem TGW is meant to solve. Centralizing everything would hopefully simplify this. Palo Alto does inspection. Curious, why would WAN be more performant?
NAUs helps me understand the scale of your VPCs. How many VMs/ENIs are you dealing with?
Selective peering is worse because of the inconsistency. We have it in places in our environment due to costs and randomly it’ll cause some issues. Route tables aren’t that hard to manage, it’s at the human level of just understanding which things can/can’t route to each other. The whole reason I got into this role was because we’d get to a service launch and realize we can’t connect two things together because of network issues.
If you have a good case for subnet segmentation, keep it. I have an anemic allocation of private IP space from our IT networking team and have to be very conservative when building out networks, so we go for everything in large subnets and lean heavily on security groups. I did have to fight with security a little bit, but they just didn’t understand the cloud very well. Once I explained how it really worked, they were cool with the approach.
For a while, I had a strong account team who’d give me really direct answers. Lately it seems like they’re always hedging. Maybe you’re in the same boat.
This is the correct response. Don’t reinvent the wheel, leverage the team your AWS bill already pays for.
Bring your design concerns and cost constraints to your AWS account team and ask for a workshop to unpack your architecture and needs, put it on them to help you derive a better pattern. Your Solutions Architects get paid to help you figure this out, and have an army of specialists to call on with deep experience helping other companies solve the same problem.
We did scale the Palo’s up after some bottlenecking issues. MTUs are a good point… not my wheelhouse, can please elaborate what you would do there? IIRC, we tested bypassing the Palo, and just going over TGW still had performance issues.
Let’s say tens of thousands for now. All the VPCs are provisioned with TGW peering, so they always all have routes to each other. The routes aren’t configured selectively. We rely on firewalls to handle restriction. So in my mind at least, I don’t see adding VPC peering and routing rules to next hop each specific VPC CIDR to each other shouldn’t create a problem. But maybe i dont understand?