Skip to content

Commit 5dec361

Browse files
authored
PYTHON-3474 Improve documentation about credential handling (#1080)
1 parent 942e281 commit 5dec361

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

doc/changelog.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
Changelog
22
=========
33

4-
Changes in Version 4.3
5-
----------------------
4+
Changes in Version 4.3 (4.3.2)
5+
------------------------------
6+
7+
Note: We withheld uploading tags 4.3.0 and 4.3.1 to PyPI due to a
8+
version handling error and a necessary documentation update.
69

710
`dnspython <https://pypi.python.org/pypi/dnspython>`_ is now a required
811
dependency. This change makes PyMongo easier to install for use with "mongodb+srv://"

doc/examples/authentication.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,12 @@ or the local EC2 or ECS endpoint. The order in which the client searches for
268268
when using ``pymongo_auth_aws>=1.1.0``.
269269

270270
Because we are now using ``boto3`` to handle credentials, the order and
271-
locations of credentials are slightly different from previous versions.
272-
Particularly, if you have a shared AWS credentials or config file,
271+
locations of credentials are slightly different from before. Particularly,
272+
if you have a shared AWS credentials or config file,
273273
then those credentials will be used by default if AWS auth environment
274-
variables are not set. To override this behavior, set ``AWS_PROFILE=""`` in
275-
your shell or add ``os.environ["AWS_PROFILE"] = ""`` to your script or
274+
variables are not set. To override this behavior, set
275+
``AWS_SHARED_CREDENTIALS_FILE=""`` in your shell or add
276+
``os.environ["AWS_SHARED_CREDENTIALS_FILE"] = ""`` to your script or
276277
application. Alternatively, you can create an AWS profile specifically for
277278
your MongoDB credentials and set ``AWS_PROFILE`` to that profile name.
278279

0 commit comments

Comments
 (0)