45 points · by thunderbong · 2y ago · 71 comments
Making something twice as fast is great IMO, and as a firm believer in iterative improvements, I'd never knock it.
Eg. if setting up a stack goes from 100s to 60s, that's a marked improvement.
I really wish AWS conceded the IaC war and stopped putting resources into Cloudformation. I never suffer as much as when I have to work with CF. The only worse thing I can think of is having to interact with Azure, which around 5 years ago was a terrible experience all around with regard to automation.
Going back to my CF rant: As soon as you get into any amount of complexity (and this also includes CDK, as it inherits all of CF problems), like for example using nested stacks and custom resources, it becomes almost impossible to troubleshoot incidents and problems. Error messages are obtuse. Fail states are too frequent. Update and deploy times are incredibly slow. Working with CF makes me reconsider my whole job every time. I curse the day that I chose to ignore my general precaution with CF and go for a database (Opensearch) managed with CDK.
There's a night and day difference between managing infrastructure state with Terraform and CF. Terraform also has its quirks and warts, of course, but at the very least there's very little that cannot be recovered by yourself. And it is also fast enough. CF is mostly a black box of misery.
Agreed. Sometimes I edit a core library of mine so nearly all my lambdas need to get update but I hate having a 10-20min deploy time. Some of that is GitHub Actions (their CI is so slow, I'm looking to switch) but CF itself is slow.
Besides CF, I’ve done it directly in the web console and that still seemed pretty slow (though that would have been a while ago, maybe it has improved).
Now i have to set explicitly an additional DependsOn to the queue's queuePolicy.
Really good thing is the declarative nature of it. When you release upgrades to AWS accounts where you don't have any control, this makes everything safer (and simpler to manage).
I know how CloudFormation behaves, and none of the wrappers have convinced me that translating through CloudFormation makes sense. ("through" because if you're using CDK, you're translating from imperative to declarative to imperative... why?!)
I tried it on a recent greenfield project, and now I’m kicking myself for not giving it a try in earnest earlier.
I would have been perfectly happy to use CF if they added the notion of higher level constructs at CF level, but for whatever reason they haven't. So I use CDK because it provides the ability to reuse service compositions from third party libraries as well as across different internal projects.
CDK is imperative but imperatively building the configuration is not at all the same as imperatively managing the infrastructure. Even if with CDK the configuration is imperatively built you retain all the benefits of having declarative infra - version control, selective auto update, rollback to previous state etc.
Yes, while CF is clunky and slow, and I am sure everyone who uses it has at times gotten stuck with rollback failures, but CDK does provide a somewhat better dx on top of it.
And the other way round
Crossplane (although it's quite new, and missing a lot of things that Terraform has)
It can now explode our deployments that create more than 50 ALB rules per MINUTE even faster.
Seriously:
1. Why does it not know about the rate limits other services have.
2. Why does it not automatically retry if it is rate limited.
3. Why is there a rate limit of less than a request per second in the first place!
If you haven’t noticed, I hate CF with the passion of a thousand suns.
[0] - https://aws.amazon.com/cloudcontrolapi/ [1] - https://registry.terraform.io/providers/hashicorp/awscc/late...