0
0
llucycodes42
The provisioner "remote-exec" in the code example will run Puppet apply on the remote AWS instance. It will also join the consul server on that remote AWS instance.
Shortcut: tf_remote_exec_provisioner
provisioner "remote-exec" {
inline = [
"puppet apply",
"consul join ${aws_instance.web.private_ip}"
]
}