Docs syntax fix (#31)

* docs:  fix complex example syntax

* docs: fix broken resource and variable refs in example

* fix duplicate resource name
This commit is contained in:
Randall Morey authored and GitHub committed 2020-09-08 11:05:35 -07:00
1 parent 005902e231
commit e0a98f6aa2
1 file changed
+27 -11
+27 -11
View File
@@ -16,11 +16,11 @@ Do not keep your authentication password in HCL for production environments, use
```hcl
provider "boundary" {
base_url = "https://127.0.0.1:9200"
default_scope = "o_0000000000"
auth_method_id = "paum_1234567890"
auth_method_username = "myuser"
auth_method_password = "$uper$ecure9ass^^ord"
base_url = "http://127.0.0.1:9200"
default_scope = "global"
auth_method_id = "paum_1234567890" # changeme
auth_method_username = "myuser" # changeme
auth_method_password = "$uper$ecure9ass^^ord" # changeme
}
```
@@ -28,13 +28,14 @@ provider "boundary" {
```hcl
provider "boundary" {
base_url = "https://127.0.0.1:9200"
default_scope = "o_0000000000"
auth_method_id = "paum_1234567890"
auth_method_username = "myuser"
auth_method_password = "$uper$ecure9ass^^ord"
base_url = "http://127.0.0.1:9200"
default_scope = "global"
auth_method_id = "paum_1234567890" # changeme
auth_method_username = "myuser" # changeme
auth_method_password = "$uper$ecure9ass^^ord" # changeme
}
variable "backend_team" {
type = set(string)
default = [
@@ -47,7 +48,7 @@ variable "backend_team" {
variable "frontend_team" {
type = set(string)
default = [
"Randy Morey",
"Randall Morey",
"Susmitha Girumala",
]
}
@@ -78,6 +79,14 @@ variable "backend_server_ips" {
]
}
variable "frontend_server_ips" {
type = set(string)
default = [
"10.2.0.1",
"10.2.0.2",
]
}
resource "boundary_organization" "corp" {}
resource "boundary_user" "backend" {
@@ -200,6 +209,13 @@ resource "boundary_host_catalog" "backend_servers" {
scope_id = boundary_project.core_infra.id
}
resource "boundary_host_catalog" "frontend_servers" {
name = "frontend_servers"
description = "Web servers for backend team"
type = "Static"
scope_id = boundary_project.core_infra.id
}
resource "boundary_host_set" "backend_servers_service" {
name = "backend_servers_service"
description = "Host set for services servers"