mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
13 lines
206 B
Terraform
13 lines
206 B
Terraform
|
resource "aws_instance" "foo" {
|
||
|
require_new = "yes"
|
||
|
}
|
||
|
|
||
|
resource "aws_instance" "bar" {
|
||
|
require_new = "yes"
|
||
|
value = "${aws_instance.foo.id}"
|
||
|
|
||
|
lifecycle {
|
||
|
create_before_destroy = true
|
||
|
}
|
||
|
}
|