0
0
llucycodes42
When the provisioner "local-exec" is executed, it will echo the private IP of the current AWS instance to private_ips.txt.
Shortcut: tf_local_exec_provisioner
provisioner "local-exec" {
command = "echo ${aws_instance.web.private_ip} >> private_ips.txt"
}