set AWS env. variables
export ASSUME_ROLE_ARN="arn:aws:iam::000000000000:role/role00001"
export AWS_ACCESS_KEY_ID="..."
export AWS_SECRET_ACCESS_KEY="..."
optionally you can set session token for MFA
export AWS_SESSION_TOKEN="..."
and then load the helper
wget "${ASSUME_HELPER_URL}" -O ./init.sh
. ./init.sh
aws eks list-clusters --region eu-central-1
Do not execute this helper as script. As we need to modify environment variables in the current proces - helper has to be sourced with source
or .