mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
21 lines
389 B
Terraform
21 lines
389 B
Terraform
|
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}"
|
||
|
}
|
||
|
}
|
||
|
}
|