Tweak doc for setting AWS_SESSION_TOKEN

Co-authored-by: Adrián Chaves <adrian@chaves.io>
This commit is contained in:
laggardkernel 2021-07-27 19:29:25 +08:00 committed by laggardkernel
parent 7e4321f201
commit 8e7b96d8a2
2 changed files with 7 additions and 6 deletions

View File

@ -200,7 +200,9 @@ passed through the following settings:
- :setting:`AWS_ACCESS_KEY_ID`
- :setting:`AWS_SECRET_ACCESS_KEY`
- :setting:`AWS_SESSION_TOKEN` (Optional)
- :setting:`AWS_SESSION_TOKEN` (only needed for `temporary security credentials`_)
.. _temporary security credentials: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#temporary-access-keys
You can also define a custom ACL and custom endpoint for exported feeds using this setting:

View File

@ -209,14 +209,13 @@ such as the :ref:`S3 feed storage backend <topics-feed-storage-s3>`.
AWS_SESSION_TOKEN
-----------------
Default: ``None`` (Optional)
Default: ``None``
The AWS security token used by code that requires access to `Amazon Web services`_,
such as the :ref:`S3 feed storage backend <topics-feed-storage-s3>`.
such as the :ref:`S3 feed storage backend <topics-feed-storage-s3>`, when using
`temporary security credentials`_.
The security token is only required by a *temporary security credentials*.
Using of temporary security credentials is discouraged cause the credentials
are short term. It may expires before the scraping is done.
.. _temporary security credentials: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#temporary-access-keys
.. setting:: AWS_ENDPOINT_URL