Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#34 Create ~/.aws directory when not present #35

Merged
merged 1 commit into from
Nov 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions d3b_cli_igor/utils/scripts/awslogin
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ echo "[DEFAULT]
idp_url=https://d3b-center.auth0.com
client_id=YWUQKnBQ25J9htQ7AWRByzhHf6lxrbQN

if [ -z ~/.aws ]; then
mkdir ~/.aws
touch ~/.aws/credentials
fi

" > ~/.saml-login
saml-login aws-assume-role --show >> ~/.saml-login
cat ~/.saml-login | grep -v DEFAULT | grep "\[" | awk -F\[ '{ print $2}' | awk -F\] '{print $1}' > ~/.saml_menu
Expand Down