diff --git a/docs/resources/target.md b/docs/resources/target.md index 338d9ea9..2d176a66 100644 --- a/docs/resources/target.md +++ b/docs/resources/target.md @@ -50,35 +50,30 @@ resource "boundary_credential_library_vault" "foo" { credential_type = "username_password" } -resource "boundary_host_catalog" "foo" { +resource "boundary_host_catalog_static" "foo" { name = "test" description = "test catalog" scope_id = boundary_scope.project.id - type = "static" } -resource "boundary_host" "foo" { - type = "static" +resource "boundary_host_static" "foo" { name = "foo" - host_catalog_id = boundary_host_catalog.foo.id + host_catalog_id = boundary_host_catalog_static.foo.id address = "10.0.0.1" } -resource "boundary_host" "bar" { - type = "static" +resource "boundary_host_static" "bar" { name = "bar" - host_catalog_id = boundary_host_catalog.foo.id + host_catalog_id = boundary_host_catalog_static.foo.id address = "10.0.0.1" } -resource "boundary_host_set" "foo" { - type = "static" +resource "boundary_host_set_static" "foo" { name = "foo" - host_catalog_id = boundary_host_catalog.foo.id - + host_catalog_id = boundary_host_catalog_static.foo.id host_ids = [ - boundary_host.foo.id, - boundary_host.bar.id, + boundary_host_static.foo.id, + boundary_host_static.bar.id, ] } @@ -93,7 +88,7 @@ resource "boundary_storage_bucket" "aws_example" { "access_key_id" = "aws_access_key_id_value", "secret_access_key" = "aws_secret_access_key_value" }) - worker_filter = "\"pki\" in \"/tags/type\"" + egress_worker_filter = "\"egress\" in \"/tags/type\"" } resource "boundary_target" "foo" { @@ -103,7 +98,7 @@ resource "boundary_target" "foo" { default_port = "22" scope_id = boundary_scope.project.id host_source_ids = [ - boundary_host_set.foo.id + boundary_host_set_static.foo.id ] brokered_credential_source_ids = [ boundary_credential_library_vault.foo.id @@ -112,12 +107,12 @@ resource "boundary_target" "foo" { resource "boundary_target" "ssh_foo" { name = "ssh_foo" - description = "Ssh target" + description = "SSH target" type = "ssh" default_port = "22" scope_id = boundary_scope.project.id host_source_ids = [ - boundary_host_set.foo.id + boundary_host_set_static.foo.id ] injected_application_credential_source_ids = [ boundary_credential_library_vault.foo.id @@ -126,12 +121,12 @@ resource "boundary_target" "ssh_foo" { resource "boundary_target" "ssh_session_recording_foo" { name = "ssh_foo" - description = "Ssh target" + description = "SSH target" type = "ssh" default_port = "22" scope_id = boundary_scope.project.id host_source_ids = [ - boundary_host_set.foo.id + boundary_host_set_static.foo.id ] injected_application_credential_source_ids = [ boundary_credential_library_vault.foo.id @@ -140,6 +135,21 @@ resource "boundary_target" "ssh_session_recording_foo" { storage_bucket_id = boundary_storage_bucket.aws_example } +resource "boundary_target" "rdp_foo" { + name = "rdp_foo" + description = "RDP target" + type = "rdp" + default_port = "3389" + scope_id = boundary_scope.project.id + host_source_ids = [ + boundary_host_set_static.foo.id + ] + injected_application_credential_source_ids = [ + boundary_credential_library_vault.foo.id + ] + egress_worker_filter = "\"egress\" in \"/tags/type\"" +} + resource "boundary_target" "address_foo" { name = "address_foo" description = "Foo target with an address"