DEV Community

Rahul Wagh
Rahul Wagh

Posted on

1

What are terraform Provisioners?

Terraform provisioners are of three types -

  1. file
  2. local-exec
  3. remote-exec

1.File provisioner - The file provisioner will help you to copy the file securely from the local machine or development machine to the remote Ec2 instance.

  1. Local provisioner - The local-exec provisioner invokes a local executable after a resource is created. This invokes a process on the machine running Terraform, not on the resource. It will help you to run the shell command onto your local machine instead of the remote EC2 instance. The local provisioners are

  2. Remote provisioner - The remote-exec provisioner invokes a script on a remote resource after it is created. This can be used to run a configuration management tool, bootstrap into a cluster, etc. It will help you to run the shell command onto the remote Ec2 instance of AWS or virtual machine of Google Cloud

▬▬▬▬▬▬ * Instruction's Guides * ▬▬▬▬▬▬

  1. Terraform provisioners - https://jhooq.com/terraform-provisioner/
  2. SSH into terrafrom AWS EC2 instance - https://jhooq.com/terraform-ssh-into-aws-ec2/

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay