Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.





https://www.terraform.io/docs/provisioners/local-exec.html


Code Block
titlelocal-exec
# Add the provider "null" ( as you would od with aws, ... )
--------------------------------------------------------------
.\terraform.exe init



# reboot the vSRX EC2 instannce ( to load the new interfaces )
resource "null_resource" "example1" {
    provisioner "local-exec" {
    command = "aws ec2 reboot-instances --instance-ids ${aws_instance.vSRX1.id} --no-verify"
  }
}