@@ -141,6 +141,72 @@ the shell connected to your selected deployment.
141
141
142
142
:mongosh:`Perform CRUD Operations in the MongoDB Shell </crud>`
143
143
144
+
145
+ .. _vsce-connect-task-atlas-streams:
146
+
147
+ Connect to Atlas Stream Processing
148
+ ----------------------------------
149
+
150
+ .. versionadded:: 1.50
151
+
152
+ You can use |vsce| to connect to `Atlas Stream Processing
153
+ <https://www.mongodb.com/products/platform/atlas-stream-processing>`__
154
+ by providing a Stream Processing Interface (SPI) connection string.
155
+
156
+ For details on how to configure Atlas Stream Processing, see
157
+ :ref:`manage-spi`.
158
+
159
+ .. procedure::
160
+ :style: normal
161
+
162
+ .. step:: Open the connections pane
163
+
164
+ a. Expand the :guilabel:`Connections` pane in the left navigation
165
+ if it is collapsed.
166
+
167
+ #. Click the More Actions menu (...) and select
168
+ :guilabel:`Add MongoDB Connection with Connection String...`
169
+
170
+ .. step:: Paste in an SPI connection string
171
+
172
+ To obtain an SPI connection string login to your
173
+ `Atlas <https://cloud.mongodb.com>`__ account.
174
+ Click :guilabel:`Stream Processing` from the left-hand navigation
175
+ and then select a Stream Processor Instance. Click
176
+ :guilabel:`Connect` and choose :guilabel:`MongoDB for VSCode` from
177
+ the :guilabel:`Choose a Connection Method` page of the connect
178
+ dialog.
179
+
180
+ .. tip::
181
+
182
+ For full details on using and configuring
183
+ Atlas Stream Processing, see :ref:`what-is-atlas-sp`.
184
+
185
+ The following code block is an example of SPI connection string:
186
+
187
+ .. code-block::
188
+
189
+ mongodb://user1:password1@atlas-stream-xxxxxxxxxxxxxxxxxxxxxxxx-yyyyy.virginia-usa.a.query.mongodb.net/?authSource=admin&readPreference=primary&ssl=true&directConnection=true
190
+
191
+ Once you are connected, the stream connection displays under
192
+ the :guilabel:`Connections` pane:
193
+
194
+ .. figure:: /images/vsce-stream-connection-example.png
195
+ :figwidth: 700px
196
+ :alt: Image of a stream connection
197
+
198
+ .. step:: Open a new |vsce| playground
199
+
200
+ After successfully connecting to your Atlas Stream, click
201
+ :guilabel:`Create New Playground` on the :guilabel:`Playgrounds`
202
+ pane. A stream processing playground template displays with
203
+ pre-populated code that allows you to list stream connections
204
+ and process stream data:
205
+
206
+ .. figure:: /images/vsce-stream-connection-playground.png
207
+ :figwidth: 700px
208
+ :alt: Image of a stream processing template
209
+
144
210
.. _vsce-rename-connection:
145
211
146
212
Rename a Connection
0 commit comments