mirror of
https://github.com/hashicorp/terraform.git
synced 2026-04-20 21:59:52 -04:00
13 lines
209 B
Terraform
13 lines
209 B
Terraform
|
|
locals {
|
||
|
|
test1 = local.test2
|
||
|
|
test2 = local.test1
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "test_instance" "foo" {
|
||
|
|
ami = resource.test_instance.bar.ami
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "test_instance" "bar" {
|
||
|
|
ami = resource.test_instance.foo.ami
|
||
|
|
}
|