Templates
This page explains concepts associated with HCP Waypoint templates.
Background
HCP Waypoint templates are common infrastructure patterns created and maintained by platform engineers. They ensure that any infrastructure provisioned using a template is compliant with your organization's policies for security, finance, scaling, and more. Application developers create applications from templates to provision standardized infrastructure when deploying their applications.
Templates serve as a starting point for application developers. For example, a template can consist of a code repository template configured with your organization's default frontend framework, linting libraries, and CI/CD pipelines. Other examples of templates can be a production-ready Kubernetes cluster or backend API framework that is configured for serverless.
HCP Waypoint templates reference HCP Terraform no-code modules to define the common infrastructure patterns.
Workflow
Refer to How does HCP Waypoint work? for an overview of the workflow. The following steps describe the template creation and consumption model:
A platform engineer creates the following artifacts:
- A no-code module that references an HCP Waypoint application: No-code modules are HCP Terraform artifacts that allow you to deploy a module's resources without writing Terraform configuration. Refer to Designing No-Code Ready Modules in the Terraform documentation for additional information.
- An HCP Waypoint template associated with the no-code module.
Refer to Create and manage templates for details and instructions on how to complete this process.
An application engineer selects a suitable template in the HCP Waypoint interface to create new applications, triggering the following automated procedure:
- HCP Waypoint uses the template's Terraform no-code module to create a Terraform workspace in the HCP Terraform organization as configured by the platform engineer.
- HCP Waypoint assigns the
waypoint_application
variable to the Terraform workspace. Your no-code module can reference this value to label the resources it deploys. - HCP Waypoint starts a Terraform run in the workspace. When the Terraform workspace run completes, the HCP Waypoint application and underlying infrastructure is ready.
Once HCP Waypoint creates the application, the application developer can follow the "Developer instructions" provided by the template to modify the boilerplate and start deploying their applications onto the infrastructure.
Refer to Use a template to deploy and manage an application for details and instructions on how to complete this process.