mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-23 23:22:57 -06:00
c6300d511c
Only used in targets for now. The plan is to use this for interpolation as well. This allows us to target: * individual resources expanded by `count` using bracket / index notation. * deposed / tainted resources with an `InstanceType` field after name Docs to follow.
10 lines
221 B
HCL
10 lines
221 B
HCL
resource "aws_vpc" "metoo" {}
|
|
resource "aws_instance" "notme" { }
|
|
resource "aws_instance" "me" {
|
|
vpc_id = "${aws_vpc.metoo.id}"
|
|
count = 3
|
|
}
|
|
resource "aws_elb" "meneither" {
|
|
instances = ["${aws_instance.me.*.id}"]
|
|
}
|