mirror of https://github.com/hashicorp/terraform
parent
d2c3db552a
commit
867f6b3691
@ -0,0 +1,18 @@
|
||||
variable "foo" {
|
||||
default = "bar";
|
||||
description = "bar";
|
||||
}
|
||||
|
||||
provider "aws" {
|
||||
foo = "${aws_security_group.firewall.value}"
|
||||
}
|
||||
|
||||
resource "aws_security_group" "firewall" {}
|
||||
|
||||
resource "aws_instance" "web" {
|
||||
ami = "${var.foo}"
|
||||
security_groups = [
|
||||
"foo",
|
||||
"${aws_security_group.firewall.foo}"
|
||||
]
|
||||
}
|
||||
Loading…
Reference in new issue