From f2dfaa1cca3c2b25d4ad523055ee6b1419e71ebf Mon Sep 17 00:00:00 2001 From: update generated docs action Date: Thu, 23 Mar 2023 19:05:57 +0000 Subject: [PATCH] Update docs --- docs/resources/workflow_trigger.md | 62 +++++++++++++++++++++++++++++ docs/resources/workflow_triggers.md | 4 +- 2 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 docs/resources/workflow_trigger.md diff --git a/docs/resources/workflow_trigger.md b/docs/resources/workflow_trigger.md new file mode 100644 index 00000000..061c4830 --- /dev/null +++ b/docs/resources/workflow_trigger.md @@ -0,0 +1,62 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "env0_workflow_trigger Resource - terraform-provider-env0" +subcategory: "" +description: |- + cannot be used with env0workflowtriggers +--- + +# env0_workflow_trigger (Resource) + +cannot be used with env0_workflow_triggers + +## Example Usage + +```terraform +data "env0_project" "default" { + name = "Default Organization Project" +} + +resource "env0_template" "template" { + name = "Template for environment resource" + type = "terraform" + repository = "https://github.com/env0/templates" + path = "misc/null-resource" + terraform_version = "0.15.1" +} + +resource "env0_environment" "the_trigger" { + force_destroy = true + name = "the_trigger" + project_id = data.env0_project.default.id + template_id = env0_template.template.id + approve_plan_automatically = true +} + +resource "env0_environment" "downstream_environment" { + force_destroy = true + name = "downstream_environment" + project_id = data.env0_project.default.id + template_id = env0_template.template.id + approve_plan_automatically = true +} + +resource "env0_workflow_trigger" "trigger_link" { + environment_id = env0_environment.the_trigger.id + downstream_environment_id = env0_environment.downstream_environment.id +} +``` + + +## Schema + +### Required + +- `downstream_environment_id` (String) environment to trigger +- `environment_id` (String) id of the source environment + +### Read-Only + +- `id` (String) The ID of this resource. + + diff --git a/docs/resources/workflow_triggers.md b/docs/resources/workflow_triggers.md index 998f9ecd..55f29ba2 100644 --- a/docs/resources/workflow_triggers.md +++ b/docs/resources/workflow_triggers.md @@ -3,12 +3,12 @@ page_title: "env0_workflow_triggers Resource - terraform-provider-env0" subcategory: "" description: |- - + cannot be used with env0workflowtrigger --- # env0_workflow_triggers (Resource) - +cannot be used with env0_workflow_trigger ## Example Usage