Skip to content

Commit 8e6caec

Browse files
authored
move changes to example file
1 parent 63b370c commit 8e6caec

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

docs/resources/waypoint_template.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,19 @@ Waypoint Template resource
1212
## Example Usage
1313

1414
```terraform
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
15+
resource "hcp_waypoint_template" "template" {
16+
name = "go-k8s-microservice"
17+
summary = "A simple Go microservice running on Kubernetes."
18+
description = <<EOF
19+
This template deploys a simple Go microservice to Kubernetes. The microservice
20+
is a simple HTTP server that listens on port 8080 and returns a JSON response.
21+
The template includes a Dockerfile, Kubernetes manifests, and boiler plate code
22+
for a gRPC service written in Go.
23+
EOF
24+
terraform_project_id = "prj-123456"
25+
labels = ["go", "kubernetes"]
26+
terraform_no_code_module_source = "private/fake-org/go-k8s-microservice/kubernetes"
27+
terraform_no_code_module_id = "nocode-123456"
3428
variable_options = [
3529
{
3630
name = "resource_size"

examples/resources/hcp_waypoint_template/resource.tf

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
resource "hcp_waypoint_template" "template" {
2-
name = "go-k8s-microservice"
3-
summary = "A simple Go microservice running on Kubernetes."
4-
description = <<EOF
5-
This template deploys a simple Go microservice to Kubernetes. The microservice
6-
is a simple HTTP server that listens on port 8080 and returns a JSON response.
7-
The template includes a Dockerfile, Kubernetes manifests, and boiler plate code
8-
for a gRPC service written in Go.
9-
EOF
10-
terraform_project_id = "prj-123456"
11-
labels = ["go", "kubernetes"]
12-
terraform_no_code_module_source = "private/fake-org/go-k8s-microservice/kubernetes"
13-
terraform_no_code_module_id = "nocode-123456"
1+
resource "tfe_project" "example" {
2+
name = "waypoint-build-destination"
3+
organization = var.org_name
4+
}
5+
6+
data "tfe_registry_module" "example" {
7+
organization = var.org_name
8+
name = "my-nocode-example-module"
9+
module_provider = "aws"
10+
}
11+
12+
resource "hcp_waypoint_template" "example" {
13+
name = "example-aws-template"
14+
summary = "AWS waypoint deployment."
15+
description = "Deploys a nocode module."
16+
terraform_project_id = tfe_project.example.id
17+
labels = ["pets"]
18+
terraform_no_code_module_source = data.tfe_registry_module.example.no_code_module_source
19+
terraform_no_code_module_id = data.tfe_registry_module.example.no_code_module_id
1420
variable_options = [
1521
{
1622
name = "resource_size"

0 commit comments

Comments
 (0)