Created
May 13, 2019 06:39
-
-
Save rybons/7ed7db867d4638170121c7979c371ef9 to your computer and use it in GitHub Desktop.
Sample Terraform connection block
This file contains 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
resource "aws_instance" "myinstance" { | |
connection { | |
user = "${var.user}" | |
private_key = "${file("${var.key_pair_file}")}" | |
bastion_host = "${var.bastion_host}" | |
bastion_user = "${var.bastion_user}" | |
bastion_private_key = "${file("${var.bastion_key_pair_file}")}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment