@@ -10,20 +10,18 @@ Deploy to AWS Lambda with Bref
10
10
:depth: 2
11
11
:class: singlecol
12
12
13
- .. versionadded:: 1.17
14
-
15
13
Overview
16
14
--------
17
15
18
- `Bref <https://bref.sh>`_ allows to deploy serverless PHP applications on AWS Lambda.
16
+ `Bref <https://bref.sh>`__ allows to deploy serverless PHP applications on AWS Lambda.
19
17
In this tutorial, you will deploy a simple PHP application with the MongoDB PHP extension,
20
18
and connect to an Atlas cluster using AWS IAM authentication.
21
19
22
20
Prerequisites
23
21
--------------
24
22
25
23
Before you begin, you must install Bref on your machine. You can follow the
26
- `official documentation to setup Bref <https://bref.sh/docs/setup>`_ .
24
+ `official documentation to setup Bref <https://bref.sh/docs/setup>`__ .
27
25
28
26
Install the MongoDB extension
29
27
-----------------------------
@@ -52,7 +50,7 @@ by deploying this default application.
52
50
53
51
54
52
Bref provides a Lambda layer with PHP and some very common extensions.
55
- Additional extensions are provided by the package `bref/extra-php-extension <https://github.com/brefphp/extra-php-extensions>`_ .
53
+ Additional extensions are provided by the package `bref/extra-php-extension <https://github.com/brefphp/extra-php-extensions>`__ .
56
54
57
55
.. code-block:: yaml
58
56
@@ -69,7 +67,7 @@ Additional extensions are provided by the package `bref/extra-php-extension <htt
69
67
70
68
71
69
Let's try to use the MongoDB driver with this simple web page that list planets
72
- from the :manual: `sample dataset </ atlas/sample-data/>`.
70
+ from the `sample dataset <https://www.mongodb.com/docs/ atlas/sample-data/>`__ .
73
71
Replace the contents of ``index.php`` with the following:
74
72
75
73
.. literalinclude:: /examples/aws-lambda/index.php
@@ -92,7 +90,7 @@ Atlas supports passwordless authentication with AWS credentials. In any Lambda f
92
90
AWS sets environment variables that contains the access token and secret token with
93
91
the role assigned to deployed function.
94
92
95
- Set up :manual: `unified AWS Access </ atlas/security/set-up-unified-aws-access/>`:
93
+ Set up `unified AWS Access <https://www.mongodb.com/docs/ atlas/security/set-up-unified-aws-access/>`__ :
96
94
97
95
1. Open the Lambda function in the AWS console
98
96
2. In "Configuration > Permission", copy the "Role name"
0 commit comments