-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
update generated docs action
committed
Mar 23, 2023
1 parent
8b06996
commit f2dfaa1
Showing
2 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 generated by tfplugindocs --> | ||
## 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. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters