-
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 d97db0f
Showing
10 changed files
with
636 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,58 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "humanitec_pipeline Resource - terraform-provider-humanitec" | ||
subcategory: "" | ||
description: |- | ||
An Automation Rule defining how and when artefacts in an environment should be updated. | ||
--- | ||
|
||
# humanitec_pipeline (Resource) | ||
|
||
An Automation Rule defining how and when artefacts in an environment should be updated. | ||
|
||
## 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 | ||
|
||
- `created_at` (String) The date and time when the Pipeline was created. | ||
- `etag` (String) The current entity tag value for this Pipeline. | ||
- `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. | ||
- `status` (String) The current status 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.