config: make the tests a bit more intense

This commit is contained in:
Mitchell Hashimoto 2014-05-24 14:02:49 -07:00
parent bdeb278728
commit 81bfa8970a
2 changed files with 10 additions and 3 deletions

View File

@ -67,10 +67,14 @@ const resourceGraphValue = `
root: root
root -> aws_security_group.firewall
root -> aws_instance.web
root -> aws_load_balancer.weblb
aws_security_group.firewall
aws_instance.web
aws_instance.web -> aws_security_group.firewall
aws_load_balancer.weblb
aws_load_balancer.weblb -> aws_instance.web
root
root -> aws_security_group.firewall
root -> aws_instance.web
root -> aws_load_balancer.weblb
`

View File

@ -3,13 +3,16 @@ variable "foo" {
description = "bar";
}
resource "aws_security_group" "firewall" {
}
resource "aws_security_group" "firewall" {}
resource aws_instance "web" {
resource "aws_instance" "web" {
ami = "${var.foo}"
security_groups = [
"foo",
"${aws_security_group.firewall.foo}"
]
}
resource "aws_load_balancer" "weblb" {
members = "${aws_instance.web.id_list}"
}