mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
10 lines
189 B
Terraform
10 lines
189 B
Terraform
|
resource "aws_instance" "foo" {}
|
||
|
|
||
|
resource "aws_instance" "web" {
|
||
|
count = "${aws_instance.foo.bar}"
|
||
|
}
|
||
|
|
||
|
resource "aws_load_balancer" "weblb" {
|
||
|
members = "${aws_instance.web.*.id}"
|
||
|
}
|