hcl: Removed edge object in favor of depends_on field in resource
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user