Skip to content

Instantly share code, notes, and snippets.

@rdalbuquerque
Created June 6, 2021 19:00
Show Gist options
  • Save rdalbuquerque/aaf9cb58fdc56ebfd0fe654e50a3a396 to your computer and use it in GitHub Desktop.
Save rdalbuquerque/aaf9cb58fdc56ebfd0fe654e50a3a396 to your computer and use it in GitHub Desktop.
Terraform for Kubernetes lab - 3
provisioner "remote-exec" {
connection {
host = self.public_ip
user = "admin"
private_key = file("~/.ssh/k8s-lab.pem")
}
inline = ["echo 'Instance ${self.public_dns} is up!'"]
}
provisioner "local-exec" {
command = "ansible-playbook execution command"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment