mirror of https://github.com/hashicorp/terraform
Merge pull request #1797 from hashicorp/b-flatten-modules-cycle
core: failing test for a bad module cyclepull/1781/head
commit
803348d05f
@ -0,0 +1,5 @@
|
||||
resource "aws_instance" "a" { }
|
||||
|
||||
output "output" {
|
||||
value = "${aws_instance.a.id}"
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
variable "input" {}
|
||||
resource "aws_instance" "b" {
|
||||
name = "${var.input}"
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
module "a" {
|
||||
source = "./a"
|
||||
}
|
||||
|
||||
module "b" {
|
||||
source = "./b"
|
||||
input = "${module.a.output}"
|
||||
}
|
||||
Loading…
Reference in new issue