Skip to content

Commit

Permalink
chore: revert changes
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Shan <[email protected]>
  • Loading branch information
Siqi-Shan committed Feb 15, 2025
1 parent 43feacf commit 6c69ae5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions shared-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,6 @@ function useChildAccountCredentials {
echo "Unable to find a child account. Falling back to parent AWS account"
return
fi
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_SESSION_TOKEN

creds=$(aws sts assume-role --role-arn arn:aws:iam::${pick_acct}:role/OrganizationAccountAccessRole --role-session-name testSession${session_id} --duration-seconds 3600)
if [ -z $(echo $creds | jq -c -r '.AssumedRoleUser.Arn') ]; then
echo "Unable to assume child account role. Falling back to parent AWS account"
Expand Down

0 comments on commit 6c69ae5

Please sign in to comment.