mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-23 23:22:57 -06:00
24 lines
429 B
HCL
24 lines
429 B
HCL
variable "pass" {}
|
|
variable "value" {}
|
|
|
|
resource "aws_instance" "foo" {
|
|
num = "2"
|
|
compute = "dynamical"
|
|
compute_value = "${var.value}"
|
|
}
|
|
|
|
resource "aws_instance" "bar" {
|
|
connection {
|
|
type = "telnet"
|
|
}
|
|
|
|
provisioner "shell" {
|
|
foo = "${aws_instance.foo.dynamical}"
|
|
connection {
|
|
user = "superuser"
|
|
port = 2222
|
|
pass = "${var.pass}"
|
|
}
|
|
}
|
|
}
|