You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/module_configuration/staticsite.rst
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,8 +78,17 @@ Parameters
78
78
79
79
staticsite_auth_at_edge: true
80
80
81
+
**staticsite_create_user_pool (Optional[bool])**
82
+
Creates a User Pool for the Auth@Edge configuration. Either this or ``staticsite_user_pool_arn`` are required when ``staticsite_auth_at_edge`` is ``true``.
83
+
84
+
Example:
85
+
86
+
.. code-block:: yaml
87
+
88
+
staticsite_create_user_pool: true
89
+
81
90
**staticsite_user_pool_arn (Optional[str])**
82
-
Required if ``staticsite_auth_at_edge`` is ``true``. A pre-existing Cognito User Pool is required for user authentication.
91
+
A pre-existing Cognito User Pool is required for user authentication. Either this or ``staticsite_create_user_pool`` are required when ``staticsite_auth_at_edge`` is ``true``.
83
92
84
93
Example:
85
94
@@ -343,7 +352,7 @@ Here is how the solution works:
343
352
6. After passing all of the verification steps, `Lambda@Edge` strips out the Authorization header and allows the request to pass through to designated origin for CloudFront. In this case, the origin is the private content Amazon S3 bucket.
344
353
7. After receiving response from the origin S3 bucket, CloudFront sends the response back to the browser. The browser displays the data from the returned response.
345
354
346
-
An example of a `Auth@Edge`_ static site configuration is as follows. All listed options are required:
355
+
An example of a `Auth@Edge`_ static site configuration is as follows:
347
356
348
357
.. code-block:: yaml
349
358
@@ -362,5 +371,5 @@ An example of a `Auth@Edge`_ static site configuration is as follows. All listed
362
371
- us-east-1
363
372
364
373
The `Auth@Edge`_ functionality uses your existing Cognito User Pool (optionally configured
365
-
with federated identity providers). A user pool app client will be automatically created
366
-
within the pool for the application's use.
374
+
with federated identity providers) or can create one for you with the ``staticsite_create_user_pool`` option.
375
+
A user pool app client will be automatically created within the pool for the application's use.
0 commit comments