Last active
March 25, 2020 15:56
-
-
Save ch1bo/39f288820a8adb5483d74e0dc510c06c to your computer and use it in GitHub Desktop.
AWS environment setup with MFA devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
SERIAL_NUMBER=$1 | |
TOKEN_CODE=$2 | |
if [ -z "${SERIAL_NUMBER}" ] || [ -z "${TOKEN_CODE}" ]; then | |
# Clear when called with eval | |
>&2 echo "# Clearing credentials" | |
echo "unset AWS_ACCESS_KEY_ID" | |
echo "unset AWS_SECRET_ACCESS_KEY" | |
echo "unset AWS_SESSION_TOKEN" | |
echo "unset AWS_PROFILE" | |
>&2 echo "# To request credentials: eval \$($0 MFA-SERIAL-NUMBER TOKEN-CODE)" | |
exit 2 | |
fi | |
# Clear within session to retrieve new tokens | |
unset AWS_ACCESS_KEY_ID | |
unset AWS_SECRET_ACCESS_KEY | |
unset AWS_SESSION_TOKEN | |
RESULT=$(aws sts get-session-token --serial-number ${SERIAL_NUMBER} --token-code ${TOKEN_CODE}) | |
EXPIRATION=$(echo ${RESULT} | jq '.Credentials.Expiration') | |
ACCESS_KEY_ID=$(echo ${RESULT} | jq '.Credentials.AccessKeyId') | |
SECRET_ACCESS_KEY=$(echo ${RESULT} | jq '.Credentials.SecretAccessKey') | |
SESSION_TOKEN=$(echo ${RESULT} | jq '.Credentials.SessionToken') | |
>&2 echo "# Got credentials, valid until ${EXPIRATION}" | |
echo "export AWS_PROFILE=${AWS_PROFILE}" | |
echo "export AWS_ACCESS_KEY_ID=${ACCESS_KEY_ID}" | |
echo "export AWS_SECRET_ACCESS_KEY=${SECRET_ACCESS_KEY}" | |
echo "export AWS_SESSION_TOKEN=${SESSION_TOKEN}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="terminal" baseProfile="full" viewBox="0 0 983 455" width="983" version="1.1"> | |
<defs> | |
<termtosvg:template_settings xmlns:termtosvg="https://github.com/nbedos/termtosvg"> | |
<termtosvg:screen_geometry columns="117" rows="22"/> | |
<termtosvg:animation type="css"/> | |
</termtosvg:template_settings> | |
<style type="text/css" id="generated-style"><![CDATA[#screen { | |
font-family: 'DejaVu Sans Mono', monospace; | |
font-style: normal; | |
font-size: 14px; | |
} | |
text { | |
dominant-baseline: text-before-edge; | |
white-space: pre; | |
} | |
:root { | |
--animation-duration: 21132ms; | |
} | |
@keyframes roll { | |
0.000%{transform:translateY(0px)} | |
0.005%{transform:translateY(-408px)} | |
0.009%{transform:translateY(-816px)} | |
1.216%{transform:translateY(-1224px)} | |
1.268%{transform:translateY(-1632px)} | |
1.278%{transform:translateY(-2040px)} | |
5.333%{transform:translateY(-2448px)} | |
7.557%{transform:translateY(-2856px)} | |
10.449%{transform:translateY(-3264px)} | |
11.201%{transform:translateY(-3672px)} | |
11.935%{transform:translateY(-4080px)} | |
12.682%{transform:translateY(-4488px)} | |
13.468%{transform:translateY(-4896px)} | |
15.943%{transform:translateY(-5304px)} | |
28.521%{transform:translateY(-5712px)} | |
32.851%{transform:translateY(-6120px)} | |
36.229%{transform:translateY(-6528px)} | |
39.267%{transform:translateY(-6936px)} | |
42.433%{transform:translateY(-7344px)} | |
45.680%{transform:translateY(-7752px)} | |
52.593%{transform:translateY(-8160px)} | |
52.607%{transform:translateY(-8568px)} | |
56.251%{transform:translateY(-8976px)} | |
56.256%{transform:translateY(-9384px)} | |
56.308%{transform:translateY(-9792px)} | |
56.322%{transform:translateY(-10200px)} | |
66.023%{transform:translateY(-10608px)} | |
67.154%{transform:translateY(-11016px)} | |
67.405%{transform:translateY(-11424px)} | |
68.171%{transform:translateY(-11832px)} | |
69.009%{transform:translateY(-12240px)} | |
70.694%{transform:translateY(-12648px)} | |
71.238%{transform:translateY(-13056px)} | |
73.571%{transform:translateY(-13464px)} | |
74.129%{transform:translateY(-13872px)} | |
74.948%{transform:translateY(-14280px)} | |
75.341%{transform:translateY(-14688px)} | |
76.401%{transform:translateY(-15096px)} | |
76.912%{transform:translateY(-15504px)} | |
77.295%{transform:translateY(-15912px)} | |
78.208%{transform:translateY(-16320px)} | |
82.633%{transform:translateY(-16728px)} | |
82.661%{transform:translateY(-17136px)} | |
82.666%{transform:translateY(-17544px)} | |
82.723%{transform:translateY(-17952px)} | |
82.747%{transform:translateY(-18360px)} | |
95.268%{transform:translateY(-18768px)} | |
100.000%{transform:translateY(-18768px)} | |
} | |
#screen_view { | |
animation-duration: 21132ms; | |
animation-iteration-count:infinite; | |
animation-name:roll; | |
animation-timing-function: steps(1,end); | |
animation-fill-mode: forwards; | |
} | |
]]></style> | |
<style type="text/css" id="user-style"> | |
/* gjm8 color theme (source: https://terminal.sexy/) */ | |
.foreground {fill: #f8f8f2} | |
.background {fill: #272822} | |
.color0 {fill: #272822} | |
.color1 {fill: #f92672} | |
.color2 {fill: #a6e22e} | |
.color3 {fill: #f4bf75} | |
.color4 {fill: #66d9ef} | |
.color5 {fill: #ae81ff} | |
.color6 {fill: #a1efe4} | |
.color7 {fill: #f8f8f2} | |
.color8 {fill: #75715e} | |
.color9 {fill: #fd971f} | |
.color10 {fill: #383830} | |
.color11 {fill: #49483e} | |
.color12 {fill: #a59f85} | |
.color13 {fill: #f5f4f1} | |
.color14 {fill: #cc6633} | |
.color15 {fill: #f9f8f5} | |
</style> | |
</defs> | |
<rect id="terminalui" class="background" width="100%" height="100%" ry="4.5826941"/> | |
<circle cx="24" cy="23" r="7" class="color1"/> | |
<circle cx="44" cy="23" r="7" class="color3"/> | |
<circle cx="64" cy="23" r="7" class="color2"/> | |
<svg id="screen" width="936" height="374" x="23" y="50" viewBox="0 0 936 374" preserveAspectRatio="xMidYMin slice"> | |
<rect class="background" height="100%" width="100%" x="0" y="0"/><defs><g id="g1"><text class="background" textLength="8" x="0"> </text></g><g id="g2"><text class="background" textLength="8" x="0"> </text><text class="foreground" textLength="928" x="8"> </text></g><g id="g3"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="background" textLength="8" x="120"> </text><text class="foreground" textLength="808" x="128"> </text></g><g id="g4"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="background" textLength="752" x="120">eval $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 403159) </text><text class="foreground" textLength="64" x="872"> </text></g><g id="g5"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="704" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 403159</text><text class="background" textLength="8" x="856">)</text><text class="foreground" textLength="72" x="864"> </text></g><g id="g6"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="696" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 40315</text><text class="background" textLength="8" x="848">)</text><text class="foreground" textLength="80" x="856"> </text></g><g id="g7"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="688" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 4031</text><text class="background" textLength="8" x="840">)</text><text class="foreground" textLength="88" x="848"> </text></g><g id="g8"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="680" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 403</text><text class="background" textLength="8" x="832">)</text><text class="foreground" textLength="96" x="840"> </text></g><g id="g9"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="672" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 40</text><text class="background" textLength="8" x="824">)</text><text class="foreground" textLength="104" x="832"> </text></g><g id="g10"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="664" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 4</text><text class="background" textLength="8" x="816">)</text><text class="foreground" textLength="112" x="824"> </text></g><g id="g11"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="656" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel </text><text class="background" textLength="8" x="808">)</text><text class="foreground" textLength="120" x="816"> </text></g><g id="g12"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="672" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 43</text><text class="background" textLength="8" x="824">)</text><text class="foreground" textLength="104" x="832"> </text></g><g id="g13"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="680" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 436</text><text class="background" textLength="8" x="832">)</text><text class="foreground" textLength="96" x="840"> </text></g><g id="g14"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="688" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 4368</text><text class="background" textLength="8" x="840">)</text><text class="foreground" textLength="88" x="848"> </text></g><g id="g15"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="696" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 43687</text><text class="background" textLength="8" x="848">)</text><text class="foreground" textLength="80" x="856"> </text></g><g id="g16"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="704" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 436872</text><text class="background" textLength="8" x="856">)</text><text class="foreground" textLength="72" x="864"> </text></g><g id="g17"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="color2" textLength="32" x="120">eval</text><text class="foreground" textLength="784" x="152"> $(AWS_PROFILE=mindcurv-dev aws-mfa arn:aws:iam::753976864083:mfa/sebastian.nagel 436872) </text></g><g id="g18"><text class="foreground" textLength="424" x="0"># Got credentials, valid until "2020-03-26T03:55:43Z"</text></g><g id="g19"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="background" textLength="8" x="232"> </text><text class="foreground" textLength="696" x="240"> </text></g><g id="g20"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="8" x="232">e</text><text class="background" textLength="8" x="240"> </text><text class="foreground" textLength="688" x="248"> </text></g><g id="g21"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color9" font-weight="bold" textLength="16" x="232">ev</text><text class="background" textLength="8" x="248"> </text><text class="foreground" textLength="680" x="256"> </text></g><g id="g22"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color9" font-weight="bold" textLength="24" x="232">eva</text><text class="background" textLength="8" x="256"> </text><text class="foreground" textLength="672" x="264"> </text></g><g id="g23"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="background" textLength="8" x="264"> </text><text class="foreground" textLength="664" x="272"> </text></g><g id="g24"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="foreground" textLength="8" x="264"> </text><text class="background" textLength="8" x="272"> </text><text class="foreground" textLength="656" x="280"> </text></g><g id="g25"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="foreground" textLength="16" x="264"> $</text><text class="background" textLength="8" x="280"> </text><text class="foreground" textLength="648" x="288"> </text></g><g id="g26"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="foreground" textLength="24" x="264"> $(</text><text class="background" textLength="8" x="288"> </text><text class="foreground" textLength="640" x="296"> </text></g><g id="g27"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="foreground" textLength="32" x="264"> $(a</text><text class="background" textLength="8" x="296"> </text><text class="foreground" textLength="632" x="304"> </text></g><g id="g28"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="foreground" textLength="40" x="264"> $(aw</text><text class="background" textLength="8" x="304"> </text><text class="foreground" textLength="624" x="312"> </text></g><g id="g29"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="foreground" textLength="48" x="264"> $(aws</text><text class="background" textLength="8" x="312"> </text><text class="foreground" textLength="616" x="320"> </text></g><g id="g30"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="foreground" textLength="56" x="264"> $(aws-</text><text class="background" textLength="8" x="320"> </text><text class="foreground" textLength="608" x="328"> </text></g><g id="g31"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="foreground" textLength="64" x="264"> $(aws-m</text><text class="background" textLength="8" x="328"> </text><text class="foreground" textLength="600" x="336"> </text></g><g id="g32"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="foreground" textLength="72" x="264"> $(aws-mf</text><text class="background" textLength="8" x="336"> </text><text class="foreground" textLength="592" x="344"> </text></g><g id="g33"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="foreground" textLength="80" x="264"> $(aws-mfa</text><text class="background" textLength="8" x="344"> </text><text class="foreground" textLength="584" x="352"> </text></g><g id="g34"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="foreground" textLength="88" x="264"> $(aws-mfa)</text><text class="background" textLength="8" x="352"> </text><text class="foreground" textLength="576" x="360"> </text></g><g id="g35"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="16" x="88">][</text><text class="color3" textLength="96" x="104">mindcurv-dev</text><text class="color8" font-weight="bold" textLength="8" x="200">]</text><text class="color6" textLength="24" x="208"> ➜ </text><text class="color2" textLength="32" x="232">eval</text><text class="foreground" textLength="672" x="264"> $(aws-mfa) </text></g><g id="g36"><text class="foreground" textLength="176" x="0"># Clearing credentials</text></g><g id="g37"><text class="foreground" textLength="832" x="0"># To request credentials: eval $(/home/nage_se/work/fe/cloud/utils/aws-mfa MFA-SERIAL-NUMBER TOKEN-CODE)</text></g><g id="g38"><text class="color8" font-weight="bold" textLength="8" x="0">[</text><text class="color5" textLength="56" x="8">nage_se</text><text class="color8" font-weight="bold" textLength="16" x="64">][</text><text class="color4" textLength="8" x="80">~</text><text class="color8" font-weight="bold" textLength="8" x="88">]</text><text class="color6" textLength="24" x="96"> ➜ </text><text class="foreground" textLength="816" x="120"> </text></g></defs><g id="screen_view"><g><rect class="foreground" height="17" width="8" x="0" y="0"/><use y="0" xlink:href="#g1"/></g><g><rect class="foreground" height="17" width="8" x="0" y="408"/><use y="408" xlink:href="#g1"/></g><g><rect class="foreground" height="17" width="8" x="0" y="816"/><use y="816" xlink:href="#g1"/></g><g><rect class="foreground" height="17" width="8" x="0" y="1224"/><use y="1224" xlink:href="#g2"/></g><g><rect class="foreground" height="17" width="8" x="120" y="1632"/><use y="1632" xlink:href="#g3"/></g><g><rect class="foreground" height="17" width="8" x="120" y="2040"/><use y="2040" xlink:href="#g3"/></g><g><rect class="color2" height="17" width="32" x="120" y="2448"/><rect class="foreground" height="17" width="720" x="152" y="2448"/><use y="2448" xlink:href="#g4"/></g><g><rect class="foreground" height="17" width="8" x="856" y="2856"/><use y="2856" xlink:href="#g5"/></g><g><rect class="foreground" height="17" width="8" x="848" y="3264"/><use y="3264" xlink:href="#g6"/></g><g><rect class="foreground" height="17" width="8" x="840" y="3672"/><use y="3672" xlink:href="#g7"/></g><g><rect class="foreground" height="17" width="8" x="832" y="4080"/><use y="4080" xlink:href="#g8"/></g><g><rect class="foreground" height="17" width="8" x="824" y="4488"/><use y="4488" xlink:href="#g9"/></g><g><rect class="foreground" height="17" width="8" x="816" y="4896"/><use y="4896" xlink:href="#g10"/></g><g><rect class="foreground" height="17" width="8" x="808" y="5304"/><use y="5304" xlink:href="#g11"/></g><g><rect class="foreground" height="17" width="8" x="816" y="5712"/><use y="5712" xlink:href="#g10"/></g><g><rect class="foreground" height="17" width="8" x="824" y="6120"/><use y="6120" xlink:href="#g12"/></g><g><rect class="foreground" height="17" width="8" x="832" y="6528"/><use y="6528" xlink:href="#g13"/></g><g><rect class="foreground" height="17" width="8" x="840" y="6936"/><use y="6936" xlink:href="#g14"/></g><g><rect class="foreground" height="17" width="8" x="848" y="7344"/><use y="7344" xlink:href="#g15"/></g><g><rect class="foreground" height="17" width="8" x="856" y="7752"/><use y="7752" xlink:href="#g16"/></g><g><rect class="foreground" height="17" width="8" x="856" y="8160"/><use y="8160" xlink:href="#g16"/></g><g><use y="8568" xlink:href="#g17"/><rect class="foreground" height="17" width="8" x="0" y="8585"/><use y="8585" xlink:href="#g1"/></g><g><use y="8976" xlink:href="#g17"/><use y="8993" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="0" y="9010"/><use y="9010" xlink:href="#g1"/></g><g><use y="9384" xlink:href="#g17"/><use y="9401" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="0" y="9418"/><use y="9418" xlink:href="#g2"/></g><g><use y="9792" xlink:href="#g17"/><use y="9809" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="232" y="9826"/><use y="9826" xlink:href="#g19"/></g><g><use y="10200" xlink:href="#g17"/><use y="10217" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="232" y="10234"/><use y="10234" xlink:href="#g19"/></g><g><use y="10608" xlink:href="#g17"/><use y="10625" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="240" y="10642"/><use y="10642" xlink:href="#g20"/></g><g><use y="11016" xlink:href="#g17"/><use y="11033" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="248" y="11050"/><use y="11050" xlink:href="#g21"/></g><g><use y="11424" xlink:href="#g17"/><use y="11441" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="256" y="11458"/><use y="11458" xlink:href="#g22"/></g><g><use y="11832" xlink:href="#g17"/><use y="11849" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="264" y="11866"/><use y="11866" xlink:href="#g23"/></g><g><use y="12240" xlink:href="#g17"/><use y="12257" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="272" y="12274"/><use y="12274" xlink:href="#g24"/></g><g><use y="12648" xlink:href="#g17"/><use y="12665" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="280" y="12682"/><use y="12682" xlink:href="#g25"/></g><g><use y="13056" xlink:href="#g17"/><use y="13073" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="288" y="13090"/><use y="13090" xlink:href="#g26"/></g><g><use y="13464" xlink:href="#g17"/><use y="13481" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="296" y="13498"/><use y="13498" xlink:href="#g27"/></g><g><use y="13872" xlink:href="#g17"/><use y="13889" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="304" y="13906"/><use y="13906" xlink:href="#g28"/></g><g><use y="14280" xlink:href="#g17"/><use y="14297" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="312" y="14314"/><use y="14314" xlink:href="#g29"/></g><g><use y="14688" xlink:href="#g17"/><use y="14705" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="320" y="14722"/><use y="14722" xlink:href="#g30"/></g><g><use y="15096" xlink:href="#g17"/><use y="15113" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="328" y="15130"/><use y="15130" xlink:href="#g31"/></g><g><use y="15504" xlink:href="#g17"/><use y="15521" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="336" y="15538"/><use y="15538" xlink:href="#g32"/></g><g><use y="15912" xlink:href="#g17"/><use y="15929" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="344" y="15946"/><use y="15946" xlink:href="#g33"/></g><g><use y="16320" xlink:href="#g17"/><use y="16337" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="352" y="16354"/><use y="16354" xlink:href="#g34"/></g><g><use y="16728" xlink:href="#g17"/><use y="16745" xlink:href="#g18"/><rect class="foreground" height="17" width="8" x="352" y="16762"/><use y="16762" xlink:href="#g34"/></g><g><use y="17136" xlink:href="#g17"/><use y="17153" xlink:href="#g18"/><use y="17170" xlink:href="#g35"/><rect class="foreground" height="17" width="8" x="0" y="17187"/><use y="17187" xlink:href="#g1"/></g><g><use y="17544" xlink:href="#g17"/><use y="17561" xlink:href="#g18"/><use y="17578" xlink:href="#g35"/><use y="17595" xlink:href="#g36"/><use y="17612" xlink:href="#g37"/><rect class="foreground" height="17" width="8" x="0" y="17629"/><use y="17629" xlink:href="#g2"/></g><g><use y="17952" xlink:href="#g17"/><use y="17969" xlink:href="#g18"/><use y="17986" xlink:href="#g35"/><use y="18003" xlink:href="#g36"/><use y="18020" xlink:href="#g37"/><rect class="foreground" height="17" width="8" x="120" y="18037"/><use y="18037" xlink:href="#g3"/></g><g><use y="18360" xlink:href="#g17"/><use y="18377" xlink:href="#g18"/><use y="18394" xlink:href="#g35"/><use y="18411" xlink:href="#g36"/><use y="18428" xlink:href="#g37"/><rect class="foreground" height="17" width="8" x="120" y="18445"/><use y="18445" xlink:href="#g3"/></g><g><use y="18768" xlink:href="#g17"/><use y="18785" xlink:href="#g18"/><use y="18802" xlink:href="#g35"/><use y="18819" xlink:href="#g36"/><use y="18836" xlink:href="#g37"/><use y="18853" xlink:href="#g38"/><rect class="foreground" height="17" width="8" x="0" y="18870"/><use y="18870" xlink:href="#g1"/></g></g></svg> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment