Skip to content

Commit e310c3d

Browse files
committed
Use :atlas: links
1 parent 99cebe4 commit e310c3d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/tutorial/aws-lambda.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ will look like this:
7878
- ${bref-extra:mongodb-php-83}
7979

8080

81+
8182
Let's use the MongoDB driver with a web page that list planets from the Atlas
82-
`sample dataset <https://www.mongodb.com/docs/atlas/sample-data/>`__.
83+
:atlas:`sample dataset </sample-data/>`.
8384
Replace the contents of ``index.php`` with the following:
8485

8586
.. literalinclude:: /examples/aws-lambda/index.php
@@ -108,15 +109,14 @@ the role assigned to deployed function.
108109
2. In :guilabel:`Configuration > Permission`, copy the "Role name"
109110
3. Add this role to your Atlas cluster with the built-in Role: "Read and write any database"
110111

111-
To learn how to set up unified AWS access, see `Set Up Unified AWS Access
112-
<https://www.mongodb.com/docs/atlas/security/set-up-unified-aws-access/>`__ in the
113-
MongoDB Atlas documentation.
112+
To learn how to set up unified AWS access, see :atlas:`Set Up Unified AWS Access
113+
</security/set-up-unified-aws-access/>` in the MongoDB Atlas documentation.
114114

115115
Now that the permissions have been configured, the Lambda function is allowed to access
116116
your Atlas cluster. You can configure your application with the Atlas endpoint.
117117

118118
Access to Atlas clusters is also restricted by IP address. Since the range of IP that comes
119-
from AWS is very wide, you can `allow access from everywhere <https://www.mongodb.com/docs/atlas/security/ip-access-list/>`__.
119+
from AWS is very wide, you can :atlas:`allow access from everywhere </security/ip-access-list/>`__.
120120

121121
.. note::
122122

@@ -136,8 +136,8 @@ Update the ``serverless.yml`` file to pass the environment variable ``MONGODB_UR
136136
environment:
137137
MONGODB_URI: "mongodb+srv://cluster0.example.mongodb.net/?authSource=%24external&authMechanism=MONGODB-AWS&retryWrites=true&w=majority"
138138

139-
Finally, deploy with the new configuration. After deployment completes, you can access the function URL
140-
and see the list of planets from your Atlas cluster.
139+
Finally, deploy with the new configuration. After deployment completes, you can
140+
access the function URL and see the list of planets from your Atlas cluster.
141141

142142
.. code-block:: none
143143

0 commit comments

Comments
 (0)