Skip to content

Commit 9f5f79d

Browse files
committed
adds rdp example, updates outdated resource example types
1 parent c9e2843 commit 9f5f79d

File tree

1 file changed

+30
-20
lines changed

1 file changed

+30
-20
lines changed

docs/resources/target.md

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,35 +50,30 @@ resource "boundary_credential_library_vault" "foo" {
5050
credential_type = "username_password"
5151
}
5252
53-
resource "boundary_host_catalog" "foo" {
53+
resource "boundary_host_catalog_static" "foo" {
5454
name = "test"
5555
description = "test catalog"
5656
scope_id = boundary_scope.project.id
57-
type = "static"
5857
}
5958
60-
resource "boundary_host" "foo" {
61-
type = "static"
59+
resource "boundary_host_static" "foo" {
6260
name = "foo"
63-
host_catalog_id = boundary_host_catalog.foo.id
61+
host_catalog_id = boundary_host_catalog_static.foo.id
6462
address = "10.0.0.1"
6563
}
6664
67-
resource "boundary_host" "bar" {
68-
type = "static"
65+
resource "boundary_host_static" "bar" {
6966
name = "bar"
70-
host_catalog_id = boundary_host_catalog.foo.id
67+
host_catalog_id = boundary_host_catalog_static.foo.id
7168
address = "10.0.0.1"
7269
}
7370
74-
resource "boundary_host_set" "foo" {
75-
type = "static"
71+
resource "boundary_host_set_static" "foo" {
7672
name = "foo"
77-
host_catalog_id = boundary_host_catalog.foo.id
78-
73+
host_catalog_id = boundary_host_catalog_static.foo.id
7974
host_ids = [
80-
boundary_host.foo.id,
81-
boundary_host.bar.id,
75+
boundary_host_static.foo.id,
76+
boundary_host_static.bar.id,
8277
]
8378
}
8479
@@ -93,7 +88,7 @@ resource "boundary_storage_bucket" "aws_example" {
9388
"access_key_id" = "aws_access_key_id_value",
9489
"secret_access_key" = "aws_secret_access_key_value"
9590
})
96-
worker_filter = "\"pki\" in \"/tags/type\""
91+
egress_worker_filter = "\"pki\" in \"/tags/type\""
9792
}
9893
9994
resource "boundary_target" "foo" {
@@ -103,7 +98,7 @@ resource "boundary_target" "foo" {
10398
default_port = "22"
10499
scope_id = boundary_scope.project.id
105100
host_source_ids = [
106-
boundary_host_set.foo.id
101+
boundary_host_set_static.foo.id
107102
]
108103
brokered_credential_source_ids = [
109104
boundary_credential_library_vault.foo.id
@@ -112,12 +107,12 @@ resource "boundary_target" "foo" {
112107
113108
resource "boundary_target" "ssh_foo" {
114109
name = "ssh_foo"
115-
description = "Ssh target"
110+
description = "SSH target"
116111
type = "ssh"
117112
default_port = "22"
118113
scope_id = boundary_scope.project.id
119114
host_source_ids = [
120-
boundary_host_set.foo.id
115+
boundary_host_set_static.foo.id
121116
]
122117
injected_application_credential_source_ids = [
123118
boundary_credential_library_vault.foo.id
@@ -126,12 +121,12 @@ resource "boundary_target" "ssh_foo" {
126121
127122
resource "boundary_target" "ssh_session_recording_foo" {
128123
name = "ssh_foo"
129-
description = "Ssh target"
124+
description = "SSH target"
130125
type = "ssh"
131126
default_port = "22"
132127
scope_id = boundary_scope.project.id
133128
host_source_ids = [
134-
boundary_host_set.foo.id
129+
boundary_host_set_static.foo.id
135130
]
136131
injected_application_credential_source_ids = [
137132
boundary_credential_library_vault.foo.id
@@ -140,6 +135,21 @@ resource "boundary_target" "ssh_session_recording_foo" {
140135
storage_bucket_id = boundary_storage_bucket.aws_example
141136
}
142137
138+
resource "boundary_target" "rdp_foo" {
139+
name = "rdp_foo"
140+
description = "RDP target"
141+
type = "rdp"
142+
default_port = "3389"
143+
scope_id = boundary_scope.project.id
144+
host_source_ids = [
145+
boundary_host_set_static.foo.id
146+
]
147+
injected_application_credential_source_ids = [
148+
boundary_credential_library_vault.foo.id
149+
]
150+
egress_worker_filter = "\"egress\" in \"/tags/type\""
151+
}
152+
143153
resource "boundary_target" "address_foo" {
144154
name = "address_foo"
145155
description = "Foo target with an address"

0 commit comments

Comments
 (0)