diff --git a/docs/resources/pipeline.md b/docs/resources/pipeline.md new file mode 100644 index 0000000..b18e5ae --- /dev/null +++ b/docs/resources/pipeline.md @@ -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 = < +## 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 +``` 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 = <