Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Commit

Permalink
Merge pull request #40 from bboe/patch-1
Browse files Browse the repository at this point in the history
Force get-session-token to use json format
  • Loading branch information
Graham Jenson authored Jan 15, 2019
2 parents 042d759 + 47df2ab commit ff05fb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assume-role
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ assume-role-with-bastion() {
SESSION_ARGS+=(--serial-number "${MFA_DEVICE}")
SESSION_ARGS+=(--token-code "${mfa_token}")
SESSION_ARGS+=(--profile "${default_profile}")
SESSION_ARGS+=(--output json)

SESSION=$(aws sts get-session-token "${SESSION_ARGS[@]}")

Expand Down

0 comments on commit ff05fb7

Please sign in to comment.