mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-18 20:52:58 -06:00
b9e076ec66
When working with a ConfigResource, the generalization of a ModuleInstance to a Module was inadvertently dropped, and there was to test coverage for that type of target. Ensure we can target a specific module instance alone.
13 lines
163 B
HCL
13 lines
163 B
HCL
resource "aws_instance" "foo" {
|
|
num = "2"
|
|
}
|
|
|
|
resource "aws_instance" "bar" {
|
|
foo = aws_instance.foo.num
|
|
}
|
|
|
|
module "mod" {
|
|
source = "./mod"
|
|
count = 1
|
|
}
|