0
0
llucycodes42
The provisioner "file" is using SSH to copy the myapp.conf file from the conf folder to the /etc/myapp.conf directory as the root user.
Shortcut: tf_connection_provisioner
# Copies the file as the root user using SSH
provisioner "file" {
source = "conf/myapp.conf"
destination = "/etc/myapp.conf"
connection {
type = "ssh"
user = "root"
password = "samplePasswordHere"
}
}