Skip to content

Instantly share code, notes, and snippets.

@rybons
Created May 13, 2019 06:39
Show Gist options
  • Save rybons/7ed7db867d4638170121c7979c371ef9 to your computer and use it in GitHub Desktop.
Save rybons/7ed7db867d4638170121c7979c371ef9 to your computer and use it in GitHub Desktop.
Sample Terraform connection block
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