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
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ data "mongodbatlas_stream_connection" "example" {
25
25
If `type` is of value `Cluster` the following additional attributes are defined:
26
26
*`cluster_name` - Name of the cluster configured for this connection.
27
27
*`db_role_to_execute` - The name of a Built in or Custom DB Role to connect to an Atlas Cluster. See [DBRoleToExecute](#DBRoleToExecute).
28
+
*`cluster_project_id` - Unique 24-hexadecimal digit string that identifies the project that contains the configured cluster. Required if the ID does not match the project containing the streams instance. You must first enable the organization setting.
28
29
29
30
If `type` is of value `Kafka` the following additional attributes are defined:
30
31
*`authentication` - User credentials required to connect to a Kafka cluster. Includes the authentication type, as well as the parameters for that authentication mode. See [authentication](#authentication).
If `type` is of value `Cluster` the following additional arguments are defined:
108
121
*`cluster_name` - Name of the cluster configured for this connection.
109
122
*`db_role_to_execute` - The name of a Built in or Custom DB Role to connect to an Atlas Cluster. See [DBRoleToExecute](#DBRoleToExecute).
123
+
*`cluster_project_id` - Unique 24-hexadecimal digit string that identifies the project that contains the configured cluster. Required if the ID does not match the project containing the streams instance. You must first enable the organization setting.
110
124
111
125
If `type` is of value `Kafka` the following additional arguments are defined:
112
126
*`authentication` - User credentials required to connect to a Kafka cluster. Includes the authentication type, as well as the parameters for that authentication mode. See [authentication](#authentication).
Copy file name to clipboardExpand all lines: examples/mongodbatlas_stream_connection/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This example shows how to create Atlas Stream Connections in Terraform. It also creates a stream instance, which is a prerequisite. Both Kafka and Cluster connections types are defined to showcase their usage.
4
4
5
-
You must set the following variables:
5
+
You must set the following variables depending on connection type:
6
6
7
7
-`public_key`: Atlas public key
8
8
-`private_key`: Atlas private key
@@ -11,5 +11,6 @@ You must set the following variables:
11
11
-`kafka_password`: Password used for connecting to your external Kafka Cluster.
12
12
-`kafka_ssl_cert`: String value of public x509 certificate for connecting to Kafka over SSL.
13
13
-`cluster_name`: Name of Cluster that will be used for creating a connection.
14
+
-`cluster_project_id`: The project of the Cluster that will be used for creating a connection. Required if the project is different from the project of the stream instance.
14
15
15
16
To learn more, see the [Stream Instance Connection Registry Documentation](https://www.mongodb.com/docs/atlas/atlas-sp/manage-processing-instance/#view-connections-in-the-connection-registry).
0 commit comments