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
Copy file name to clipboardExpand all lines: docs/data-sources/stream_connection.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,17 +11,30 @@ subcategory: "Streams"
11
11
```terraform
12
12
data "mongodbatlas_stream_connection" "example" {
13
13
project_id = "<PROJECT_ID>"
14
-
instance_name = "<INSTANCE_NAME>"
14
+
workspace_name = "<WORKSPACE_NAME>"
15
+
connection_name = "<CONNECTION_NAME>"
16
+
}
17
+
```
18
+
19
+
### Example using workspace_name
20
+
21
+
```terraform
22
+
data "mongodbatlas_stream_connection" "example" {
23
+
project_id = "<PROJECT_ID>"
24
+
workspace_name = "<WORKSPACE_NAME>"
15
25
connection_name = "<CONNECTION_NAME>"
16
26
}
17
27
```
18
28
19
29
## Argument Reference
20
30
21
31
*`project_id` - (Required) Unique 24-hexadecimal digit string that identifies your project.
22
-
*`instance_name` - (Required) Human-readable label that identifies the stream instance.
32
+
*`instance_name` - (Deprecated) Human-readable label that identifies the stream instance. Attribute is deprecated and will be removed in version 3.0.0 in favor of `workspace_name`.
33
+
*`workspace_name` - (Optional) Human-readable label that identifies the stream instance. Conflicts with `workspace_name`.
23
34
*`connection_name` - (Required) Human-readable label that identifies the stream connection. In the case of the Sample type, this is the name of the sample source.
24
35
36
+
~> **NOTE:** Either `workspace_name` or `workspace_name` must be provided, but not both. These fields are functionally identical and `workspace_name` is an alias for `workspace_name`. `workspace_name` should be used instead of `workspace_name`.
37
+
25
38
## Attributes Reference
26
39
27
40
*`type` - Type of connection. Can be `AWSLambda`, `Cluster`, `Https`, `Kafka` or `Sample`.
Copy file name to clipboardExpand all lines: docs/data-sources/stream_connections.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,17 @@ subcategory: "Streams"
11
11
```terraform
12
12
data "mongodbatlas_stream_connections" "test" {
13
13
project_id = "<PROJECT_ID>"
14
-
instance_name = "<INSTANCE_NAME>"
14
+
workspace_name = "<WORKSPACE_NAME>"
15
15
}
16
16
```
17
17
18
18
## Argument Reference
19
19
20
20
*`project_id` - (Required) Unique 24-hexadecimal digit string that identifies your project.
21
-
*`instance_name` - (Required) Human-readable label that identifies the stream instance.
21
+
*`instance_name` - (Deprecated) Human-readable label that identifies the stream instance. Attribute is deprecated and will be removed in version 3.0.0 in favor of `workspace_name`.
22
+
*`workspace_name` - (Optional) Human-readable label that identifies the stream instance. Conflicts with `instance_name`.
23
+
24
+
~> **NOTE:** Either `instance_name` or `workspace_name` must be provided, but not both. These fields are functionally identical and `workspace_name` is an alias for `instance_name`. `workspace_name` should be used instead of `instance_name`.
22
25
23
26
*`page_num` - (Optional) Number of the page that displays the current set of the total objects that the response returns. Defaults to `1`.
24
27
*`items_per_page` - (Optional) Number of items that the response returns per page, up to a maximum of `500`. Defaults to `100`.
@@ -34,7 +37,7 @@ In addition to all arguments above, it also exports the following attributes:
34
37
### Stream Connection
35
38
36
39
*`project_id` - Unique 24-hexadecimal digit string that identifies your project.
37
-
*`instance_name` - Human-readable label that identifies the stream instance.
40
+
*`workspace_name` - Human-readable label that identifies the stream instance.
38
41
*`connection_name` - Human-readable label that identifies the stream connection. In the case of the Sample type, this is the name of the sample source.
39
42
*`type` - Type of connection. `AWSLambda`, `Cluster`, `Https`, `Kafka` or `Sample`.
*`project_id` - (Required) Unique 24-hexadecimal digit string that identifies your project.
155
-
*`instance_name` - (Required) Human-readable label that identifies the stream instance.
155
+
*`instance_name` - (Deprecated) Human-readable label that identifies the stream instance. Attribute is deprecated and will be removed in version 3.0.0 in favor of `workspace_name`.
156
+
*`workspace_name` - (Optional) Human-readable label that identifies the stream instance. Conflicts with `instance_name`.
156
157
*`connection_name` - (Required) Human-readable label that identifies the stream connection. In the case of the Sample type, this is the name of the sample source.
157
158
*`type` - (Required) Type of connection. Can be `AWSLambda`, `Cluster`, `Https`, `Kafka` or `Sample`.
158
159
160
+
~> **NOTE:** Either `instance_name` or `workspace_name` must be provided, but not both. These fields are functionally identical and `workspace_name` is an alias for `instance_name`. `workspace_name` should be used instead of `instance_name`.
161
+
159
162
If `type` is of value `Cluster` the following additional arguments are defined:
160
163
*`cluster_name` - Name of the cluster configured for this connection.
161
164
*`db_role_to_execute` - The name of a Built in or Custom DB Role to connect to an Atlas Cluster. See [DBRoleToExecute](#DBRoleToExecute).
@@ -209,7 +212,7 @@ If `type` is of value `Https` the following additional attributes are defined:
209
212
210
213
## Import
211
214
212
-
You can import a stream connection resource using the instance name, project ID, and connection name. The format must be `INSTANCE_NAME-PROJECT_ID-CONNECTION_NAME`. For example:
215
+
You can import a stream connection resource using the workspace name, project ID, and connection name. The format must be `WORKSPACE_NAME-PROJECT_ID-CONNECTION_NAME`. For example:
0 commit comments