-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p2This is a standard priority issueThis is a standard priority issuev2
Description
Some CLI tools (ie. awslogs, Ansible) require (or at least work better) with the standard AWS_
environment variables. It would be nice to be able to export these env vars in a terminal in a quick and easy fashion.
For example, I want to use awslogs to watch my CloudWatch log stream. It supports "profiles" but not the new aws2 profiles. So, something like this won't work:
$ awslogs groups --profile myaccount-adminaccess
You've found a bug! Please, raise an issue attaching the following traceback
https://github.com/jorgebastida/awslogs/issues/new
....
However, if I were to be able to export the env_vars from aws2, I could use these tools in a more native fashion:
$ aws2 --profile myaccount-adminaccess export
AWS_ACCESS_KEY_ID=afsdasfasfasfasfasfasf
AWS_SECRET_ACCESS_KEY=23432423234244342
AWS_SESSION_TOKEN=234lj234jkl234lkj24ljk234klj234
$ awslogs group
/aws/codebuild/test
/aws/lambda/mylambda
....
anishpatel, kylelundstedt, tchiaspko, benbridts, benkehoe and 25 moreAhmadAbdelghany
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p2This is a standard priority issueThis is a standard priority issuev2