diff --git a/docs/resources/flow.md b/docs/resources/flow.md index c91120e..d2e53f8 100644 --- a/docs/resources/flow.md +++ b/docs/resources/flow.md @@ -13,28 +13,43 @@ Flow Resource ## Example Usage ```terraform +terraform { + required_providers { + epilot-automation = { + source = "epilot-dev/epilot-automation" + version = "0.1.0" + } + } +} + +variable epilot_auth{ + type = string +} + + +provider "epilot-automation" { + # Configuration options + + epilot_auth= var.epilot_auth +} + resource "epilot-automation_flow" "my_flow" { - actions = [ - "{ \"see\": \"documentation\" }", - ] - enabled = false - entity_schema = "submission" - flow_name = "Handle contact form" - runs = 7 - system_flow = true + enabled = true + flow_name = "Test automation flow" triggers = [ { activity_trigger = { configuration = { schema = "submission" types = [ - "UpdateMeterReading", + "CreateMeterReading", ] } type = "activity" } }, ] + actions = ["{\"name\":\"Trigger Webhook\",\"type\":\"trigger-webhook\",\"created_automatically\":false,\"config\":{\"sync\":true,\"target_webhook_id\":\"uWw3PC2HaL5rmkkckbGp5u\"}}"] } ```