From 08479992a206570364e4daf3fa3478951064c654 Mon Sep 17 00:00:00 2001 From: edunn Date: Thu, 2 May 2024 19:23:21 -0700 Subject: [PATCH] switch to env-var AWS credentials per https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-envvars.html --- src/pds/registrysweepers/utils/db/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pds/registrysweepers/utils/db/client.py b/src/pds/registrysweepers/utils/db/client.py index 6ca786e..9283a9b 100644 --- a/src/pds/registrysweepers/utils/db/client.py +++ b/src/pds/registrysweepers/utils/db/client.py @@ -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!")