generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add examples for two Waypoint resources.
- Loading branch information
1 parent
902fc97
commit 36180d3
Showing
8 changed files
with
108 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
examples/resources/hcp_waypoint_add_on_definition/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
resource "hcp_waypoint_add_on_definition" "add_on_definition" { | ||
name = "postgres" | ||
summary = "An add-on that provisions a PostgreSQL database." | ||
description = <<EOF | ||
This add-on provisions a PostgreSQL database in AWS. The database is provisioned | ||
with a default schema and user. | ||
EOF | ||
terraform_project_id = "prj-123456" | ||
labels = ["postgres", "aws", "db"] | ||
terraform_no_code_module_source = "private/fake-org/postgres-aws/aws" | ||
terraform_no_code_module_id = "nocode-abcdef" | ||
variable_options = [ | ||
{ | ||
name = "size" | ||
user_editable = true | ||
options = ["small", "medium", "large"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
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"] | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters