You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -210,6 +287,22 @@ If you [created an alias](#create-an-alias-for-an-existing-target) without assoc
210
287
The alias `value` must comply with DNS naming rules.
211
288
-`-authorize-session-host-id=<string>` - Optionally indicates the host ID to use when you use the alias to authorize a session.
212
289
290
+
</Tab>
291
+
<Tabheading="Terraform"group="terraform">
292
+
293
+
If you created a `boundary_alias_target` resource without setting a `destination_id` attribute, update the `destination_id` and reapply the following policy:
@@ -252,7 +345,7 @@ And the following host set and hosts exist:
252
345
- Host: `dev-040`, ID `hst_7wGXkF8e0Q`
253
346
- Host: `dev-041`, ID `hst_zlRwMMPKwp`
254
347
255
-
Because the `linux-dev-servers` hosts are functionally equivalent, you can create a single target for the host set, and create an alias for the target.
348
+
Because the `linux-dev-servers` hosts are functionally equivalent, you can create a single target for the host set, and create an alias for the target.
256
349
257
350
We recommend creating DNS-like aliases to ensure consistent naming conventions. In this example, an alias pattern might be:
258
351
@@ -362,6 +455,30 @@ Then add the `linux-dev-servers` host set (ID `hsst_56oiL0WaKu`) to the new `lin
In the following examples, Terraform resources are named with underscores instead of dashes, such as `linux_dev_servers`. The target alias values use dashes, such as `dev-041.linux-dev.app-servers.eng`. You do not need to follow these naming conventions.
464
+
465
+
</Note>
466
+
467
+
Create the `linux_dev_servers` SSH target, with `scope_id` set to `app_servers` and the host source `linux_dev_servers` (these resources are not shown):
468
+
469
+
```hcl
470
+
resource "boundary_target" "linux_dev_servers" {
471
+
name = "linux_dev_servers"
472
+
description = "linux_dev_servers target"
473
+
type = "ssh"
474
+
default_port = "22"
475
+
scope_id = boundary_scope.app_servers.id
476
+
host_source_ids = [
477
+
boundary_host_set_static.linux_dev_servers.id,
478
+
]
479
+
}
480
+
```
481
+
365
482
</Tab>
366
483
</Tabs>
367
484
@@ -444,6 +561,20 @@ Create the `dev-040.linux-dev.app-servers.eng` alias for the host `dev-040`:
444
561
445
562
</CodeBlockConfig>
446
563
564
+
</Tab>
565
+
<Tabheading="Terraform"group="terraform">
566
+
567
+
```hcl
568
+
resource "boundary_alias_target" "dev_040" {
569
+
name = "dev_040"
570
+
description = "Example alias for target linux_dev_servers using host dev_040"
0 commit comments