mirror of https://github.com/hashicorp/terraform
Merge pull request #10690 from hashicorp/b-x-module-target
terraform: TargetsTransformer should preserve module variablespull/10708/head
commit
47e756cd97
@ -0,0 +1,5 @@
|
||||
resource "aws_instance" "foo" {
|
||||
foo = "bar"
|
||||
}
|
||||
|
||||
output "value" { value = "${aws_instance.foo.id}" }
|
||||
@ -0,0 +1,5 @@
|
||||
variable "input" {}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
foo = "${var.input}"
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
module "A" {
|
||||
source = "./A"
|
||||
}
|
||||
|
||||
module "B" {
|
||||
source = "./B"
|
||||
input = "${module.A.value}"
|
||||
}
|
||||
Loading…
Reference in new issue