terraform/config/test-fixtures/resource_graph.tf

19 lines
362 B
Terraform
Raw Normal View History

2014-05-24 22:57:51 +02:00
variable "foo" {
default = "bar";
description = "bar";
}
resource "aws_security_group" "firewall" {}
2014-05-24 22:57:51 +02:00
resource "aws_instance" "web" {
2014-05-24 22:57:51 +02:00
ami = "${var.foo}"
security_groups = [
"foo",
"${aws_security_group.firewall.foo}"
]
}
resource "aws_load_balancer" "weblb" {
members = "${aws_instance.web.id_list}"
}