3 ms·
Because editing yaml or json sucks.
by geggam 8y ago
Because editing yaml or json sucks.
- scarface74 8y agoLinked from Hashicorp’s Getting Started page... https://github.com/terraform-providers/terraform-provider-aws/blob/master/examples/two-tier/main.tf https://github.com/terraform-providers/terraform-provider-aw...
- marcinzm 8y agoWhich is neither json or yaml...
- scarface74 8y agoIt's yet another semi-json format that doesn't have widespread support by any other parsers. Even Hashicorp recommends JSON if you want something that is machine readable.
- KajMagnus 8y agoI think it looks lovely :- ) having used Puppet a bit in the past. Look how simple: `inline = ["sudo apt-get -y update", ... install nginx ...` Terraform seems to be. .... hmm, apparently one can use things like Chef & Puppet etc together with Terraform, I eventually noticed.
- geggam 8y agothe nice way to do this is to pass the chef role to the user data template in the autoscale group vars { ROLE = "bastion" Then append this to the user_data.tpl file chef-client --audit-mode enabled -R -E ${chef_environment} -r role[${ROLE}] Allows you to use the same user_data.tpl file for multiple autoscale groups