I would never use Ansible for my IaC. Love it to bake my images. Didn’t puppet die like 5 years ago?
Terraform can’t complete with CloudFormation (esp. if slap Troposphere on top). That’s just my opinion though.
Beyond that when you look at the whole suite of AWS Managed Services and their tight integration. CFN carries the day dude. The CodePipeline integration alone brings more value than anything Terraform could.
Not having rollback is a good thing. At first it was a little weird, but once you realize the power of Terraform it’s awesome. Have an apply fail in the middle of a deploy? Fix the error and re-run and it will happily continue where it left off.
If you are 100% in AWS and you will never touch any outside service ever( Github, Datadog, PagerDuty, etc ) than CF makes total sense. The minute you need to touch infrastructure outside of AWS Terraform is hands down the winner.
I disagree, I run just fine in a hybrid environment at an extremely large scale.
That’s why rollback is important. When something fails and a minute costs you LARGE amounts of cash, automated rollback is very important. Also, rolling deployments anyone?
EDIT: I do use Github and PagerDuty, it all integrates fine. Webhooks and SNS topics man.
Breaking your Terraform modules up into small state files is key. You want to keep the ‘Blast Radius’ small. We run separate stacks for each module. So if someone borks the state file for the firewall stack it doesn’t take down everything.
Using lifecycles in Terraform is very important and should go a long way to preventing outages like you’re referring to. Terraform can wait until it has fully built the new piece before it tears down the old.
Why wouldn’t you want a service behind a load balancer. We use to do that for everything even if I only wanted one. If the node dies it gets spun back up.