Skip to content

Commit

Permalink
#34 Create ~/.aws directory when not present (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Gregory M <gregory@movia.media>
  • Loading branch information
gmd3b and 88051EADCD authored Nov 3, 2022
1 parent 7596e87 commit ea61ea3
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit ea61ea3

Please sign in to comment.