Install terraform-provisioner-ansible on Mac Using Brew

What is “terraform-provisioner-ansible” Package?

Ansible provisioner for Terraform. Terraform is a tool for developing, changing and versioning infrastructure safely and efficiently.To know more about terraform you can refer to : http://brewinstall.org/install-terraform-on-mac-with-brew/

Installation

  • Open Terminal by pressing command+space then type terminal and hit Enter key.
  • Install homebrew first.
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  • Install terraform-provisioner-ansible.
    brew install terraform-provisioner-ansible

Now, use terraform-provisioner-ansible!

More about Terraform-provisioner

Terraform includes the ability to provision resources at creation time through a plugin api. Currently, some builtin provisioners such as chef and standard scripts are provided; this provisioner introduces the ability to provision an instance at creation time with ansible.

This provisioner provides the ability to apply host-groups, plays or roles against a host at provision time. Ansible is run on the host itself and this provisioner configures a dynamic inventory on the fly as resources are created.

terraform-provisioner-ansible is shipped as a Terraform module. To include it, simply download the binary and enable it as a terraform module in your terraformrc.

Install Terraform and Launch EC2 Instance

Watch the tutorial below to install and setup terraform to launch ec2 instance on AWS. This tutorial is provided by Appychip

Create VPC subnet route-table ec2 using terraform

Watch the below video on “Create AWS Infrastructure With Terraform | VPC | Subnet | EC2 | Route Table | Internet Gateway”