r/aws • • 6d ago

CloudFormation/CDK/IaC AWS CloudFormation increases the default stacks per account quota to 300,000

https://aws.amazon.com/about-aws/whats-new/2026/11/cloudformation-stacks-per-account-quota/
142 Upvotes

30 comments sorted by

80

u/monotone2k 6d ago

Now increase resources per stack!

13

u/travcunn 6d ago

Those nested resources are always gnarly

6

u/monotone2k 6d ago

Yeah. Nesting, splitting, either way is a pain. Doesn't take a particularly complex app to hit 500 either. An API on API Gateway eats through resource count quicky, with path parts and methods all counting before you even attach the compute integrations! Bane of my life!

9

u/travcunn 6d ago

Expanding the resources per stack would also help internal Amazon teams... Especially services launched after 2018 ;)

1

u/Flakmaster92 5d ago

Honestly this is one of the reasons I love the CDK because it makes it so dead simple to define a multi-stack app through one CDK deployment manifest. I know you can do the same thing with pure CFN but nested stacks suck and cross stack references when you’re deploying one by one also suck

-10

u/TheKingInTheNorth 6d ago

Monolithic designs tend to cause these types of pain points.

16

u/lolerplane 6d ago

Let me rename stacks.

3

u/metaldark 5d ago

I use a lot of Cloudformation. 

At least 1,000 stacks across 15 accounts. But I only use it one way across those stacks (generated templates that predate CDK instances of the same code) so when it breaks and I reason out how to work around it, it’s a 1000x payoff. 

So I say this with a feeling of experienced authority that the only things I need from Cloudformation is for service teams to work with CF more and design their APIs with CF support in mind including taking ownership of shit like custom resources that need to wait on eventual consistency APIs. 

That’s it. 

2

u/dusanodalovic 5d ago

who was even hitting the old limit? sounds like a stack per tenant setup. curious how you roll one template change out to that many, stack sets or your own loop?

6

u/HgnX 6d ago

It’s a shame CrossPlane is so resource hungry bc cloudformation is such an old fashioned way to go about infra

8

u/davestyle 6d ago

Old? Fashion?

22

u/Zenin 6d ago • This

Old fashioned is a polite way of saying the service is dog water and can't be fixed without tossing it entirely and starting over from scratch.

Terraform is wildly better in almost every way, but extending the k8s style reconciliation based controller model to cloud resources is a much better fundamental model for managing resources than anything else including Terraform, which is what CrossPlane brings you. But then your control plane is reliant on a k8s cluster that's likely built over the resources of that control plane. That circular dependency is a big issue when SHTF, at least as bad as all the problems Cloudformation intractably has.

If AWS was still actually an innovative company they'd launch a proper Cloudformation v2 project that wholly dumped their old fashioned design in favor of a modern reconciliation based design, but as a first class cloud control plane rather than a DIY k8s cluster running CrossPlane.

15

u/davestyle 6d ago

Works fine for me. Extra points for CDK

11

u/PhatOofxD 6d ago

CDK is nice. The problem is the Cloud formation underneath.

If you haven't experienced problems with it yet you're lucky, but at minimum your deploy times are probably 3x terraform

3

u/moltar 6d ago

Easy to get deploy times fast if you don’t care about correctness. Never had a corrupt terraform state?

6

u/PhatOofxD 6d ago

I've had corrupt terraform states easily 10x less than Cloud formation states. And I've built many Cloudformation / CDK projects

Corrupt states is actually the main reason I have issue with Cloudformation

5

u/ydarb22 6d ago

Never had a corrupt state file, but have messed up the state many times. This is recoverable and really not that difficult to deal with.

Ever had to wait an hour for an already deleted resource blocking your Cfn stack removal? I have many times. If I ever have to use Cfn again, it will be too soon.

5

u/Zenin 6d ago

I've had far, far fewer state issues form Terraform.

But the real difference is that in Terraform I can fix the state while CloudFormation state issues don't offer you much recourse beyond a giant middle finger. When SHTF, and it will, I have a solid bag of tools to fix Terraform where CloudFormation offers almost nothing.

2

u/savoir-_faire 6d ago

Agreed! Especially when stored in s3 with versioning (as is recommended when using the s3 backend). Nice easy revert and then plans to fix drift of the run that corrupted it. Tbh I've only had to do that once and it wasn't even Terraforms fault.

Cloud formation (if I remember correctly always through CDK) on the other hand... It has broken state probably 3 or 4 times in my relatively small usage of it and, although I don't remember the specifics, I remember being absolutely astonished at how little recourse and visibility there was.

4

u/joost1320 6d ago

Never had a corrupt state after working with it for 3-4 years.

0

u/Zenin 6d ago

CDK just sugar coats the turd. It's still a turd.

I'll admit CDK offers a lot for devs to get hooked and in fact that's literally what CDK was built for, to sugar coat the puss filled sores of CloudFormation in an attempt to smooth over the extremely sharp edges of the base product.

But operationally it doesn't solve any of the disasters of CloudFormation because when SHTF you're dealing 100% with the CloudFormation service, not CDK.

That creates a massive knowledge issue: Your dev only know CDK, but it's CloudFormation that's breaking and your devs have piss all experience with actually dealing with CloudFormation. Thus they don't have the slightest clue how to even start to fix it. This is only getting worse in the age of AI where the devs don't even understand the CDK. Congrats, your entire mission critical stack is a black box even to the people who built it.

When (not if) real resources get messed up in prod (and yes Virginia, it happens even in 100% pure IaC/CICD shops), CloudFormation gives you little if any good options to correct it and the few options it does give you often involve waiting ages, potentially hours, for CloudFormation to give up on a resource change that you know can't ever complete, just so you can try another hacky kludge to work around it.

And don't even get me started on StackSets, which just multiply failure pain by every account x every region it's applied which in a serious enterprise can be tens of thousands of stacks...each one needing to be manually strangled to the ground. Correction can take days with most all the time just waiting on CloudFormation to finally fail so you can call the next action.

How awful CloudFormation in serious use is only one side of the coin. The other side of serious use is the fact that CloudFormation only deals with AWS resources and the world is much, much larger than just AWS. Even the simplest of stacks often need non-AWS resources managed and that leaves two options: DIY something else for everything not-AWS completely separately, or build Lambda backed custom resources in CloudFormation which are fragile AF by design and the #1 way to put your stacks in a completely broken and unrecoverable state who's only choice is to completely nuke the stack...after waiting ages for CloudFormation to timeout those bad custom resources...and try again from scratch. Why, when there are IaC tools that handle all those other resources with first class support and still handle AWS resources better than CloudFormation handles them.

But hey, who doesn't like taking an hours-long production outage waiting for CloudFormation to do something it'd take 5 mins to fix with Terraform?

5

u/Mozart_LickedMyAss 6d ago

What kind of a shop are you running where Devs can provision resources using CDK but not know cloudformation bruv?

7

u/ydarb22 6d ago

Uh, AWS itself is like this…

4

u/Zenin 6d ago

It's the rule, not the exception, that devs rarely understand the AWS resources they're using, much less CloudFormation (the service, not the syntax).

That's in fact a key dev attraction for the CDK; They tend to jump on L3 constructs believing the "best practices" are "baked in" so they are automatically well architected simply by using them. The primary job of the candy coating layer that CDK offers is abstracting away the CloudFormation and the resources themselves explicitly so that the dev doesn't need to actually understand them.

That was a truism across most of the industry before AI and it's only gotten worse since. This isn't "my shop", this is every shop.

And again, I'm not talking about the trivial syntax of CloudFormation. I'm talking about the service.

2

u/lost_send_berries 6d ago

What will they call it? Skycontrol?

4

u/Zenin 6d ago

What will they call it? Skycontrol?

Nah, it's an AWS service. They'd have to name it something like Amazon Simple Skycontrol (ASS).

2

u/StPatsLCA 6d ago

It's quite nice if you ask me.

-1

u/davestyle 6d ago

I like it