Skip to content

Commit

Permalink
switch to env-var AWS credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdunnjpl committed May 3, 2024
1 parent ae26eed commit 0847999
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pds/registrysweepers/utils/db/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,6 @@ def set_aws_auth():
os.environ["AWS_ROLE_ARN"] = content["RoleArn"]
os.environ["AWS_ACCESS_KEY_ID"] = content["AccessKeyId"]
os.environ["AWS_SECRET_ACCESS_KEY"] = content["SecretAccessKey"]
os.environ["AWS_SESSION_TOKEN"] = content["Token"]

log.info("wrote aws credentials to environment!")

0 comments on commit 0847999

Please sign in to comment.