Wednesday, February 21, 2024
HomeSoftware EngineeringThe best way to run/execute a program from Terraform

The best way to run/execute a program from Terraform


If it is advisable to run an area software out of your Terraform scripts, you’ll be able to name out to the provisioner local-exec and subject the command syntax:

useful resource "null_resource" "dig-aoms" {
  provisioner "local-exec" {
    # outline your command under
    # this may be any software obtainable in your terminal/commandline, 
    # together with arguments
    command = "dig any andrewodendaal.com"
  }
}
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments