Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Tweak doc for setting AWS_SESSION_TOKEN

laggardkernel8e7b96d8a2a6
diff --git a/docs/topics/feed-exports.rst b/docs/topics/feed-exports.rst
index af60de716..2b3217d62 100644
--- a/docs/topics/feed-exports.rst
+++ b/docs/topics/feed-exports.rst
@@ -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:
diff --git a/docs/topics/settings.rst b/docs/topics/settings.rst
index 58daafa6f..1a1a833df 100644
--- a/docs/topics/settings.rst
+++ b/docs/topics/settings.rst
@@ -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