DevOps Classroom Series – 13/Aug/2021

Terraform Provisioning

  • Refer Here
  • Terraform has 3 basic provisioners
    • file: to copy the files from local to remote
    • local-exec: is used to execute commands in the machine where terraform is running
    • remote-exec: is used to executed commands on the machines created by terraform
  • When we are working with remote system i.e. vm created by terraform we need to establish connection. Terraform has connection block which supports two kinds of connections
    • ssh
    • winrm
  • Refer Here for the connection
  • Refer Here for the changes done in aws terraform configuration to provision
  • Refer Here for the remote exec execution from shell script.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin