mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-23 23:50:12 -06:00
20 lines
256 B
HCL
20 lines
256 B
HCL
resource "aws_instance" "foo" {
|
|
count = "2"
|
|
|
|
lifecycle {
|
|
create_before_destroy = true
|
|
}
|
|
}
|
|
|
|
resource "aws_instance" "bar" {
|
|
count = "2"
|
|
|
|
lifecycle {
|
|
create_before_destroy = true
|
|
}
|
|
}
|
|
|
|
output "out" {
|
|
value = "${aws_instance.foo.0.id}"
|
|
}
|