diff --git a/docs/resources/pipeline.md b/docs/resources/pipeline.md new file mode 100644 index 0000000..99efe18 --- /dev/null +++ b/docs/resources/pipeline.md @@ -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 = < +## 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 +``` diff --git a/examples/resources/humanitec_pipeline/import.sh b/examples/resources/humanitec_pipeline/import.sh new file mode 100755 index 0000000..84aa77d --- /dev/null +++ b/examples/resources/humanitec_pipeline/import.sh @@ -0,0 +1 @@ +terraform import humanitec_pipeline.example app_id/pipeline_id diff --git a/examples/resources/humanitec_pipeline/resource.tf b/examples/resources/humanitec_pipeline/resource.tf new file mode 100644 index 0000000..2f616aa --- /dev/null +++ b/examples/resources/humanitec_pipeline/resource.tf @@ -0,0 +1,15 @@ +resource "humanitec_pipeline" "example" { + app_id = "example-app" + definition = <