| page_title | hcp_waypoint_template Resource - terraform-provider-hcp |
|---|---|
| subcategory | HCP Waypoint |
| description | Waypoint Template resource |
-> Note: HCP Waypoint is currently in public beta.
Waypoint Template resource
resource "hcp_waypoint_template" "template" {
name = "go-k8s-microservice"
summary = "A simple Go microservice running on Kubernetes."
description = <<EOF
This template deploys a simple Go microservice to Kubernetes. The microservice
is a simple HTTP server that listens on port 8080 and returns a JSON response.
The template includes a Dockerfile, Kubernetes manifests, and boiler plate code
for a gRPC service written in Go.
EOF
terraform_project_id = "prj-123456"
labels = ["go", "kubernetes"]
terraform_no_code_module_source = "private/fake-org/go-k8s-microservice/kubernetes"
terraform_no_code_module_id = "nocode-123456"
variable_options = [
{
name = "resource_size"
user_editable = true
options = ["small", "medium", "large"]
},
{
name = "service_port"
user_editable = false
options = ["8080"]
},
]
}name(String) The name of the Template.summary(String) A brief description of the template, up to 110 characters.terraform_no_code_module_id(String) The ID of the Terraform no-code module to use for running Terraform operations. This is in the format of 'nocode-'.terraform_no_code_module_source(String) Terraform Cloud No-Code Module detailsterraform_project_id(String) The ID of the Terraform Cloud Project to create workspaces in. The ID is found on the Terraform Cloud Project settings page.
actions(List of String) List of actions by 'ID' to assign to this Template. Applications created from this Template will have these actions assigned to them. Only 'ID' is supported.description(String) A description of the template, along with when and why it should be used, up to 500 characterslabels(List of String) List of labels attached to this Template.project_id(String) The ID of the HCP project where the Waypoint Template is located.readme_markdown_template(String) Instructions for using the template (markdown format supported).terraform_agent_pool_id(String) The ID of the agent pool to use for Terraform operations, for workspaces created for applications using this template. Required if terraform_execution_mode is set to 'agent'.terraform_cloud_workspace_details(Attributes, Deprecated) Terraform Cloud Workspace details (see below for nested schema)terraform_execution_mode(String) The execution mode of the HCP Terraform workspaces created for applications using this template.use_module_readme(Boolean) If true, will auto-import the readme form the Terraform module used. If this is set to true, users should not also setreadme_markdown_template.variable_options(Attributes Set) List of variable options for the template. (see below for nested schema)
id(String) The ID of the Template.organization_id(String) The ID of the HCP organization where the Waypoint Template is located.
Required:
name(String) Name of the Terraform Cloud Projectterraform_project_id(String) Terraform Cloud Project ID
Required:
name(String) Variable namevariable_type(String) Variable type
Optional:
options(List of String) List of optionsuser_editable(Boolean) Whether the variable is editable by the user creating an application