@@ -7,26 +7,30 @@ description: |-
77
88# hcp_waypoint_template ` Resource `
99
10-
11-
1210Waypoint Template resource
1311
1412## Example Usage
1513
1614``` 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"
15+ resource "tfe_project" "example" {
16+ name = "waypoint-build-destination"
17+ organization = var.org_name
18+ }
19+
20+ data "tfe_registry_module" "example" {
21+ organization = var.org_name
22+ name = "my-nocode-example-module"
23+ module_provider = "aws"
24+ }
25+
26+ resource "hcp_waypoint_template" "example" {
27+ name = "example-aws-template"
28+ summary = "AWS waypoint deployment."
29+ description = "Deploys a nocode module."
30+ terraform_project_id = tfe_project.example.id
31+ labels = ["pets"]
32+ terraform_no_code_module_source = data.tfe_registry_module.example.no_code_module_source
33+ terraform_no_code_module_id = data.tfe_registry_module.example.no_code_module_id
3034 variable_options = [
3135 {
3236 name = "resource_size"
0 commit comments