hcl: Removed edge object in favor of depends_on field in resource

This commit is contained in:
ChrisMcKenzie
2017-06-09 13:58:01 -07:00
parent bc1a1d1818
commit 7d55179727
2 changed files with 54 additions and 70 deletions

View File

@@ -2,19 +2,13 @@ resource "file" "file1" {
path = "/tmp/mgmt-hello-world"
content = "hello, world"
state = "exists"
depends_on = ["noop.noop1", "exec.sleep"]
}
resource "noop" "noop1" {
test = "nil"
}
edge "e1" {
from = {
kind = "noop"
name = "noop1"
}
to = {
kind = "file"
name = "file1"
}
resource "exec" "sleep" {
cmd = "sleep 10s"
}