@@ -14,19 +14,25 @@ Waypoint Template resource
1414## Example Usage
1515
1616``` terraform
17- resource "hcp_waypoint_template" "template" {
18- name = "go-k8s-microservice"
19- summary = "A simple Go microservice running on Kubernetes."
20- description = <<EOF
21- This template deploys a simple Go microservice to Kubernetes. The microservice
22- is a simple HTTP server that listens on port 8080 and returns a JSON response.
23- The template includes a Dockerfile, Kubernetes manifests, and boiler plate code
24- for a gRPC service written in Go.
25- EOF
26- terraform_project_id = "prj-123456"
27- labels = ["go", "kubernetes"]
28- terraform_no_code_module_source = "private/fake-org/go-k8s-microservice/kubernetes"
29- terraform_no_code_module_id = "nocode-123456"
17+ resource "tfe_project" "example" {
18+ name = "waypoint-build-destination"
19+ organization = var.org_name
20+ }
21+
22+ data "tfe_registry_module" "example" {
23+ organization = var.org_name
24+ name = "my-nocode-example-module"
25+ module_provider = "aws"
26+ }
27+
28+ resource "hcp_waypoint_template" "example" {
29+ name = "example-aws-template"
30+ summary = "AWS waypoint deployment."
31+ description = "Deploys a nocode module."
32+ terraform_project_id = tfe_project.example.id
33+ labels = ["pets"]
34+ terraform_no_code_module_source = data.tfe_registry_module.example.no_code_module_source
35+ terraform_no_code_module_id = data.tfe_registry_module.example.no_code_module_id
3036 variable_options = [
3137 {
3238 name = "resource_size"
0 commit comments