run script / command on local server/laptop
https://www.terraform.io/docs/provisioners/local-exec.html local-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" } } | |