mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-29 09:02:13 +03:00
added host
This commit is contained in:
@@ -19,6 +19,7 @@ resource "aws_instance" "example" {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
connection {
|
connection {
|
||||||
|
host = "${self.public_ip}"
|
||||||
user = "${var.INSTANCE_USERNAME}"
|
user = "${var.INSTANCE_USERNAME}"
|
||||||
private_key = "${file("${var.PATH_TO_PRIVATE_KEY}")}"
|
private_key = "${file("${var.PATH_TO_PRIVATE_KEY}")}"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user