github.com/opentofu/opentofu@v1.7.1/internal/tofu/testdata/apply-stop/apply-stop.tf (about) 1 terraform { 2 required_providers { 3 indefinite = { 4 source = "terraform.io/test/indefinite" 5 } 6 } 7 } 8 9 # The TestContext2Apply_stop test arranges for "indefinite"'s 10 # ApplyResourceChange to just block indefinitely until the operation 11 # is cancelled using Context.Stop. 12 resource "indefinite" "foo" { 13 } 14 15 resource "indefinite" "bar" { 16 # Should never get here during apply because we're going to interrupt the 17 # run during indefinite.foo's ApplyResourceChange. 18 depends_on = [indefinite.foo] 19 } 20 21 output "result" { 22 value = indefinite.foo.result 23 }