Skip to content

Commit

Permalink
try this way
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Oct 15, 2023
1 parent 4c6ece5 commit 6abab99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .evergreen/auth_aws/aws_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi
source secrets-export.sh

if [ "$1" == "web-identity" ]; then
export AWS_WEB_IDENTITY_TOKEN_FILE="$SCRIPT_DIR/token_file.txt"
export AWS_WEB_IDENTITY_TOKEN_FILE="./token_file.txt"
fi

# Handle the test setup if not using env variables.
Expand Down Expand Up @@ -73,6 +73,7 @@ case $1 in

web-identity)
export AWS_ROLE_ARN=$IAM_AUTH_ASSUME_WEB_ROLE_NAME
export AWS_WEB_IDENTITY_TOKEN_FILE="$SCRIPT_DIR/$AWS_WEB_IDENTITY_TOKEN_FILE"
;;

regular)
Expand Down
4 changes: 1 addition & 3 deletions .evergreen/auth_aws/aws_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def join(*parts):

def run(args, env):
"""Run a python command in a subprocess."""
newenv = os.environ.copy()
newenv.update(env)
return subprocess.run([sys.executable] + args, env=newenv).returncode
return subprocess.run([sys.executable] + args, env=env).returncode


def create_user(user, kwargs):
Expand Down

0 comments on commit 6abab99

Please sign in to comment.