mirror of https://github.com/hashicorp/terraform
tf query: disable depends_on for list blocks (#37618)
parent
0b15151513
commit
1048510fec
@ -0,0 +1,24 @@
|
||||
list "aws_instance" "test" {
|
||||
provider = aws
|
||||
count = 1
|
||||
include_resource = true
|
||||
limit = 5
|
||||
config {
|
||||
tags = {
|
||||
Name = "test"
|
||||
}
|
||||
}
|
||||
}
|
||||
list "aws_instance" "test2" {
|
||||
provider = aws
|
||||
count = 1
|
||||
config {
|
||||
tags = {
|
||||
Name = join("-", ["test2", list.aws_instance.test.data[0]])
|
||||
}
|
||||
}
|
||||
}
|
||||
list "aws_instance" "test3" {
|
||||
provider = aws
|
||||
depends_on = [list.aws_instance.test2]
|
||||
}
|
||||
Loading…
Reference in new issue