Skip to content

Commit

Permalink
add alias for so login
Browse files Browse the repository at this point in the history
  • Loading branch information
jabez007 committed Sep 10, 2024
1 parent ebf7ae5 commit 7cf4113
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ else
done
fi

# Add alias to .bashrc
echo "Adding sso-login alias to .bashrc."
echo "alias sso-login='aws sso login --profile $profile_name'" >> /root/.bashrc

# Update kubeconfig
echo "Updating kubeconfig."
aws eks update-kubeconfig --profile $profile_name --region $AWS_REGION --name $EKS_CLUSTER

# Add alias to .bashrc
echo "Adding alias to .bashrc."
echo "Adding update-kubeconfig alias to .bashrc."
echo "alias update-kubeconfig='aws eks update-kubeconfig --profile $profile_name --region \$AWS_REGION --name \$EKS_CLUSTER'" >> /root/.bashrc

0 comments on commit 7cf4113

Please sign in to comment.