mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-24 07:26:26 -06:00
21 lines
389 B
HCL
21 lines
389 B
HCL
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}"
|
|
}
|
|
}
|
|
}
|