If you need to run a local application from your Terraform scripts, you can call out to the provisioner local-exec and issue the command syntax:

1
2
3
4
5
6
7
8
resource "null_resource" "dig-aoms" {
  provisioner "local-exec" {
    # define your command below
    # this can be any application available in your terminal/commandline, 
    # along with arguments
    command = "dig any andrewodendaal.com"
  }
}