Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jorgebastida/awslogs
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgebastida committed Apr 13, 2019
2 parents 4d4f84b + 6d6db6b commit 401870b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,5 @@ How to provide AWS credentials to awslogs

Although, the most straightforward thing to do might be use ``--aws-access-key-id`` and ``--aws-secret-access-key``, this will eventually become a pain in the ass.

* If you only have one ``AWS`` account, my personal recommendation would be to configure `aws-cli <http://aws.amazon.com/cli/>`_. ``awslogs`` will use those credentials if available. If you have multiple ``AWS`` profiles managed by ``aws-cli``, just adds ``--profile [PROFILE_NAME]`` at the end of every ``awslogs`` command to use those credentials.
* If you only have one ``AWS`` account, my personal recommendation would be to configure `aws-cli <http://aws.amazon.com/cli/>`_. ``awslogs`` will use those credentials if available. If you have multiple ``AWS`` profiles managed by ``aws-cli``, just add ``--profile [PROFILE_NAME]`` at the end of every ``awslogs`` command to use those credentials, or set the ``AWS_PROFILE`` env variable.
* If you don't want to setup ``aws-cli``, I would recommend you to use `envdir <https://pypi.python.org/pypi/envdir>`_ in order to make ``AWS_ACCESS_KEY_ID`` and ``AWS_SECRET_ACCESS_KEY`` available to ``awslogs``.
2 changes: 1 addition & 1 deletion awslogs/bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def add_common_arguments(parser):
parser.add_argument("--profile",
dest="aws_profile",
type=str,
default=None,
default=os.environ.get('AWS_PROFILE', None),
help="aws profile")

parser.add_argument("--aws-region",
Expand Down

0 comments on commit 401870b

Please sign in to comment.