Skip to content

Commit 6c69ae5

Browse files
committed
chore: revert changes
Signed-off-by: Kevin Shan <[email protected]>
1 parent 43feacf commit 6c69ae5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

shared-scripts.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,6 @@ function useChildAccountCredentials {
364364
echo "Unable to find a child account. Falling back to parent AWS account"
365365
return
366366
fi
367-
unset AWS_ACCESS_KEY_ID
368-
unset AWS_SECRET_ACCESS_KEY
369-
unset AWS_SESSION_TOKEN
370-
371367
creds=$(aws sts assume-role --role-arn arn:aws:iam::${pick_acct}:role/OrganizationAccountAccessRole --role-session-name testSession${session_id} --duration-seconds 3600)
372368
if [ -z $(echo $creds | jq -c -r '.AssumedRoleUser.Arn') ]; then
373369
echo "Unable to assume child account role. Falling back to parent AWS account"

0 commit comments

Comments
 (0)