##// END OF EJS Templates
automation: improve documentation for credentials management...
Gregory Szorc -
r43326:f71b3c56 default
parent child Browse files
Show More
@@ -47,12 +47,25 b' https://boto3.amazonaws.com/v1/documenta'
47 for how ``boto3`` works. Once you have configured your environment such
47 for how ``boto3`` works. Once you have configured your environment such
48 that ``boto3`` can find credentials, interaction with AWS should *just work*.
48 that ``boto3`` can find credentials, interaction with AWS should *just work*.
49
49
50 .. hint::
50 To configure ``boto3``, you can use the ``aws configure`` command to
51 write out configuration files. (The ``aws`` command is typically provided
52 by an ``awscli`` package available in your package manager, including
53 ``pip``.) Alternatively, you can write out files in ``~/.aws/`` directly.
54 e.g.::
55
56 # ~/.aws/config
57 [default]
58 region = us-west-2
51
59
52 Typically you have a ``~/.aws/credentials`` file containing AWS
60 # ~/.aws/credentials
53 credentials. If you manage multiple credentials, you can override which
61 [default]
54 *profile* to use at run-time by setting the ``AWS_PROFILE`` environment
62 aws_access_key_id = XXXX
55 variable.
63 aws_secret_access_key = YYYY
64
65 If you have multiple AWS accounts, you can name the profile something
66 different from ``default``. e.g. ``hg``. You can influence which profile
67 is used by ``boto3`` by setting the ``AWS_PROFILE`` environment variable.
68 e.g. ``AWS_PROFILE=hg``.
56
69
57 Resource Management
70 Resource Management
58 -------------------
71 -------------------
General Comments 0
You need to be logged in to leave comments. Login now