Skip to content

Commit dc79a3d

Browse files
authored
Merge pull request #72 from ianf-mongodb/DOCSP-35308
DOCSP-35308 Add Atlas Stream Connection Task
2 parents 5fab562 + 781393a commit dc79a3d

File tree

4 files changed

+69
-1
lines changed

4 files changed

+69
-1
lines changed

snooty.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name = "mongodb-vscode"
22
title = "MongoDB for VS Code"
33

4-
intersphinx = ["https://www.mongodb.com/docs/manual/objects.inv"]
4+
intersphinx = ["https://www.mongodb.com/docs/manual/objects.inv",
5+
"https://www.mongodb.com/docs/atlas/objects.inv"
6+
]
57

68
toc_landing_pages = ["/playgrounds", "/crud-ops", "/playground-databases"]
79

source/connect.txt

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,72 @@ the shell connected to your selected deployment.
141141

142142
:mongosh:`Perform CRUD Operations in the MongoDB Shell </crud>`
143143

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+
144210
.. _vsce-rename-connection:
145211

146212
Rename a Connection
Loading
Loading

0 commit comments

Comments
 (0)