Using the Chef provisioner with Terraform
· ☕ 5 min read · ✍️ Brett Johnson
Terraform is an awesome tool used to manage infrastructure using the Infrastructure as Code philosophy. Modules called Providers enable Terraform to communicate with a number of different cloud providers.
Post deployment tasks are performed through a separate set of modules called ‘Provisioners’;. A provisioner is used to execute commands locally on an instance after it’s been created. One such provisioner enables the Chef client to be installed on the newly provisioned instance and the instance to be added as a node to the Chef Server.