-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
c5f6b1d
commit dc146cb
Showing
10 changed files
with
609 additions
and
79 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,55 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "humanitec_pipeline Resource - terraform-provider-humanitec" | ||
subcategory: "" | ||
description: |- | ||
A Pipeline defining a configurable automated process that will run one or more jobs. | ||
--- | ||
|
||
# humanitec_pipeline (Resource) | ||
|
||
A Pipeline defining a configurable automated process that will run one or more jobs. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "humanitec_pipeline" "example" { | ||
app_id = "example-app" | ||
definition = <<EOT | ||
name: Example pipeline | ||
on: | ||
pipeline_call: | ||
jobs: | ||
log: | ||
steps: | ||
- name: log | ||
uses: actions/humanitec/log | ||
with: | ||
message: Hello from Terraform | ||
EOT | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `app_id` (String) The id of the Application containing this Pipeline. | ||
- `definition` (String) The YAML definition of the pipeline. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the Pipeline. | ||
- `metadata` (Map of String) The map of key value pipeline additional information. | ||
- `name` (String) The name of the Pipeline. | ||
- `trigger_types` (Set of String) The list of trigger types in the current schema. | ||
- `version` (String) The unique id of the current Pipeline Version. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import humanitec_pipeline.example app_id/pipeline_id | ||
``` |
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 @@ | ||
terraform import humanitec_pipeline.example app_id/pipeline_id |
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,15 @@ | ||
resource "humanitec_pipeline" "example" { | ||
app_id = "example-app" | ||
definition = <<EOT | ||
name: Example pipeline | ||
on: | ||
pipeline_call: | ||
jobs: | ||
log: | ||
steps: | ||
- name: log | ||
uses: actions/humanitec/log | ||
with: | ||
message: Hello from Terraform | ||
EOT | ||
} |
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
Oops, something went wrong.