Created
June 6, 2021 19:00
-
-
Save rdalbuquerque/aaf9cb58fdc56ebfd0fe654e50a3a396 to your computer and use it in GitHub Desktop.
Terraform for Kubernetes lab - 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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