Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCSP-35308 Add Atlas Stream Connection Task #72

Merged
merged 19 commits into from
Jan 31, 2024
4 changes: 3 additions & 1 deletion snooty.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name = "mongodb-vscode"
title = "MongoDB for VS Code"

intersphinx = ["https://www.mongodb.com/docs/manual/objects.inv"]
intersphinx = ["https://www.mongodb.com/docs/manual/objects.inv",
"https://www.mongodb.com/docs/atlas/objects.inv"
]

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

Expand Down
66 changes: 66 additions & 0 deletions source/connect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,72 @@

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


.. _vsce-connect-task-atlas-streams:

Connect to Atlas Stream Processing
----------------------------------

.. versionadded:: 1.50

You can use |vsce| to connect to `Atlas Stream Processing
<https://www.mongodb.com/products/platform/atlas-stream-processing>`__
by providing a Stream Processing Interface (SPI) connection string.

For details on how to configure Atlas Stream Processing, see
:ref:`manage-spi`.

.. procedure::
:style: normal

Check failure on line 160 in source/connect.txt

View workflow job for this annotation

GitHub Actions / TDBX Vale rules

[vale] reported by reviewdog 🐶 [MongoDB.Accessibility] Don't use language (such as 'normal') that defines people by their disability. Raw Output: {"message": "[MongoDB.Accessibility] Don't use language (such as 'normal') that defines people by their disability.", "location": {"path": "source/connect.txt", "range": {"start": {"line": 160, "column": 12}}}, "severity": "ERROR"}

.. step:: Open the connections pane

a. Expand the :guilabel:`Connections` pane in the left navigation
if it is collapsed.

#. Click the More Actions menu (...) and select
:guilabel:`Add MongoDB Connection with Connection String...`

.. step:: Paste in an SPI connection string

To obtain an SPI connection string login to your
`Atlas <https://cloud.mongodb.com>`__ account.
Click :guilabel:`Stream Processing` from the left-hand navigation
and then select a Stream Processor Instance. Click
:guilabel:`Connect` and choose :guilabel:`MongoDB for VSCode` from
the :guilabel:`Choose a Connection Method` page of the connect
dialog.

.. tip::

For full details on using and configuring
Atlas Stream Processing, see :ref:`what-is-atlas-sp`.

The following code block is an example of SPI connection string:

.. code-block::

mongodb://user1:password1@atlas-stream-xxxxxxxxxxxxxxxxxxxxxxxx-yyyyy.virginia-usa.a.query.mongodb.net/?authSource=admin&readPreference=primary&ssl=true&directConnection=true

Once you are connected, the stream connection displays under
the :guilabel:`Connections` pane:

.. figure:: /images/vsce-stream-connection-example.png
:figwidth: 700px
:alt: Image of a stream connection

.. step:: Open a new |vsce| playground

After successfully connecting to your Atlas Stream, click
:guilabel:`Create New Playground` on the :guilabel:`Playgrounds`
pane. A stream processing playground template displays with
pre-populated code that allows you to list stream connections
and process stream data:

.. figure:: /images/vsce-stream-connection-playground.png
:figwidth: 700px
:alt: Image of a stream processing template

.. _vsce-rename-connection:

Rename a Connection
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading