@@ -50,35 +50,30 @@ resource "boundary_credential_library_vault" "foo" {
50
50
credential_type = "username_password"
51
51
}
52
52
53
- resource "boundary_host_catalog " "foo" {
53
+ resource "boundary_host_catalog_static " "foo" {
54
54
name = "test"
55
55
description = "test catalog"
56
56
scope_id = boundary_scope.project.id
57
- type = "static"
58
57
}
59
58
60
- resource "boundary_host" "foo" {
61
- type = "static"
59
+ resource "boundary_host_static" "foo" {
62
60
name = "foo"
63
- host_catalog_id = boundary_host_catalog .foo.id
61
+ host_catalog_id = boundary_host_catalog_static .foo.id
64
62
address = "10.0.0.1"
65
63
}
66
64
67
- resource "boundary_host" "bar" {
68
- type = "static"
65
+ resource "boundary_host_static" "bar" {
69
66
name = "bar"
70
- host_catalog_id = boundary_host_catalog .foo.id
67
+ host_catalog_id = boundary_host_catalog_static .foo.id
71
68
address = "10.0.0.1"
72
69
}
73
70
74
- resource "boundary_host_set" "foo" {
75
- type = "static"
71
+ resource "boundary_host_set_static" "foo" {
76
72
name = "foo"
77
- host_catalog_id = boundary_host_catalog.foo.id
78
-
73
+ host_catalog_id = boundary_host_catalog_static.foo.id
79
74
host_ids = [
80
- boundary_host .foo.id,
81
- boundary_host .bar.id,
75
+ boundary_host_static .foo.id,
76
+ boundary_host_static .bar.id,
82
77
]
83
78
}
84
79
@@ -93,7 +88,7 @@ resource "boundary_storage_bucket" "aws_example" {
93
88
"access_key_id" = "aws_access_key_id_value",
94
89
"secret_access_key" = "aws_secret_access_key_value"
95
90
})
96
- worker_filter = "\"pki\" in \"/tags/type\""
91
+ egress_worker_filter = "\"pki\" in \"/tags/type\""
97
92
}
98
93
99
94
resource "boundary_target" "foo" {
@@ -103,7 +98,7 @@ resource "boundary_target" "foo" {
103
98
default_port = "22"
104
99
scope_id = boundary_scope.project.id
105
100
host_source_ids = [
106
- boundary_host_set .foo.id
101
+ boundary_host_set_static .foo.id
107
102
]
108
103
brokered_credential_source_ids = [
109
104
boundary_credential_library_vault.foo.id
@@ -112,12 +107,12 @@ resource "boundary_target" "foo" {
112
107
113
108
resource "boundary_target" "ssh_foo" {
114
109
name = "ssh_foo"
115
- description = "Ssh target"
110
+ description = "SSH target"
116
111
type = "ssh"
117
112
default_port = "22"
118
113
scope_id = boundary_scope.project.id
119
114
host_source_ids = [
120
- boundary_host_set .foo.id
115
+ boundary_host_set_static .foo.id
121
116
]
122
117
injected_application_credential_source_ids = [
123
118
boundary_credential_library_vault.foo.id
@@ -126,12 +121,12 @@ resource "boundary_target" "ssh_foo" {
126
121
127
122
resource "boundary_target" "ssh_session_recording_foo" {
128
123
name = "ssh_foo"
129
- description = "Ssh target"
124
+ description = "SSH target"
130
125
type = "ssh"
131
126
default_port = "22"
132
127
scope_id = boundary_scope.project.id
133
128
host_source_ids = [
134
- boundary_host_set .foo.id
129
+ boundary_host_set_static .foo.id
135
130
]
136
131
injected_application_credential_source_ids = [
137
132
boundary_credential_library_vault.foo.id
@@ -140,6 +135,21 @@ resource "boundary_target" "ssh_session_recording_foo" {
140
135
storage_bucket_id = boundary_storage_bucket.aws_example
141
136
}
142
137
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
+
143
153
resource "boundary_target" "address_foo" {
144
154
name = "address_foo"
145
155
description = "Foo target with an address"
0 commit comments