Skip to content

Commit

Permalink
Merge pull request #146 from stonedprogrammer/credentials-process
Browse files Browse the repository at this point in the history
Allow credential process to be used for profiles
  • Loading branch information
okigan authored Aug 23, 2022
2 parents b4d4807 + 7b38c7f commit dc2dfbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awscurl/awscurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,8 @@ def load_aws_config(access_key, secret_key, security_token, credentials_path, pr
botocore = None

if botocore:
import botocore.session
session = botocore.session.get_session()
from botocore.session import Session
session = Session(profile=profile)
cred = session.get_credentials()
access_key, secret_key, security_token = cred.access_key, cred.secret_key, cred.token

Expand Down

0 comments on commit dc2dfbd

Please sign in to comment.