mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-02 22:39:09 -07:00
Merge pull request #14356 from mludvig/session_token
Add support for AWS_SESSION_TOKEN environment variable. (trivial patch)
This commit is contained in:
commit
7c27f72515
1 changed files with 2 additions and 0 deletions
|
@ -156,6 +156,8 @@ def get_aws_connection_info(module, boto3=False):
|
||||||
if not security_token:
|
if not security_token:
|
||||||
if 'AWS_SECURITY_TOKEN' in os.environ:
|
if 'AWS_SECURITY_TOKEN' in os.environ:
|
||||||
security_token = os.environ['AWS_SECURITY_TOKEN']
|
security_token = os.environ['AWS_SECURITY_TOKEN']
|
||||||
|
elif 'AWS_SESSION_TOKEN' in os.environ:
|
||||||
|
security_token = os.environ['AWS_SESSION_TOKEN']
|
||||||
elif 'EC2_SECURITY_TOKEN' in os.environ:
|
elif 'EC2_SECURITY_TOKEN' in os.environ:
|
||||||
security_token = os.environ['EC2_SECURITY_TOKEN']
|
security_token = os.environ['EC2_SECURITY_TOKEN']
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue