Ask HN: Ansible vs. Terraform
Hi all,
I'm starting a project in my company for upgrading our deployment infrastructure across cloud providers. Our current system is mainly using ansible for both provisioning and configuration management.
I'm trying to see Terraform as well for this option. And I wonder anyone has experience on migrating from ansible to Terraform or using both of them? And maybe can share the benefit and drawback of both of them when using them in production?
11 comments
[ 2.9 ms ] story [ 38.4 ms ] threadOptionally if you go the totally immutable route you may only need TF (plus somethig like packer) and not Ansible.
I have not had to migrate from on to the other, so unfortunately I can't be much help here. Maybe someone else can share their insights on that (including benefits/drawbacks).
Thanks for the answer! Did you use terraform or ansible fully then in your current work? Any challenges you can share when dealing with terraform or is there any reason you fully use Terraform?
Also it seems to have great traction in the industry and is a very active project so I don't see it going anywhere soon...
Could you elaborate what you mean by Terraform friendly?
https://www.terraform.io/docs/providers/
Part of the appeal of Hashicorp tools (terraform, and also vagrant and others) is that they are platform-agnostic.
The tagline even says "ONE SAFE WORKFLOW ACROSS PROVIDERS".
Check out terraform.io to see what they say.
I wouldn't limit it to AWS, and AWS isn't even always the best option. ¯\_(ツ)_/¯
Any benefit or drawback that you can share when you used both of them?
I'm not sure about Terraform since it's still new from me especially the state file part in Terraform