Comment by gchamonlive

5 days ago

S3 + cloudfront is also incredibly popular so you can just find recipes for automating that in any technology you want, Terraform, ansible, plain bash scripts, Cloudformation (god forbid)

Yeah holy crap why is cloud formation so terrible?

  • It's designed to be a declarative DSL, but then you have to do all sorts of filters and maps in any group of resources and suddenly you are programming in yaml with both hands tied behind your back

    • Yeah it’s just terrible. If Amazon knew what was good they’d just replace it with almost anything else. Heck just got all in on terraform and call it a day.

      15 replies →

  • Last time I tried to use CF, the third party IAC tools were faster to release new features than the functionality of CF itself. (Like Terraform would support some S3 bucket feature when creating a bucket, but CF did not).

    I'm not sure if that's changed recently, I've stopped using it.

    • I have been on the terraform side for 7 years-ish.

      eksctl just really impressed me with its eks management, specifically managed node groups & cluster add-ons, over terraform.

      that uses cloudformation under the hood. so i gave it a try, and it’s awesome. combine with github actions and you have your IAC automation.

      nice web interface for others to check stacks status, events for debugging and associated resources that were created.

      oh, ever destroy some legacy complex (or not that complex) aws shit in terraform? it’s not going to be smooth. site to site connections, network interfaces, subnets, peering connections, associated resources… oh, my.

      so far cloudformation has been good at destroying, but i haven’t tested that with massive legacy infra yet.

      but i am happily converted tf>cf.

      and will happily use both alongside each other as needed.

  • Because its an old early IaC language, but it works and lots depends on it, so instead of dumping or retooling it, AWS keeps it around as a compilation target, while pushing other solutions (years ago, the SAM transform on top of it, more recently CDK) as the main thing for people to actually use directly.

  • > Yeah holy crap why is cloud formation so terrible?

    I can't confirm it, but I suspect that it was always meant to be a sales tool.

    Every AWS announcement blog has a "just copy this JSON blob, and paste it $here to get your own copy of the toy demo we used to demonstrate in this announcement blog" vibe to it.