All posts / DevOps

Set up saml2aws on Ubuntu on Windows WSL

NordLearn · · 1 min read

In this story tells you how to install saml2aws on Ubuntu 20.04.4 LTS on Widows 10 WSL (Windows Subsystem for Linux). The saml2aws CLI tool is used to login and retrieve AWS temporary credentials.

Before you follow this story, you need to set up Ubuntu 20.04.4 LTS on Windows 10 WSL which you can find in here.

Below I am sharing my experience when set up saml2aws in Ubuntu on WSL.

After install Ubuntu in your Windows machine type ubuntu in search bar and open Ubuntu on Windows app. Then follow steps one by one to install saml2aws.

wget -c https://github.com/Versent/saml2aws/releases/download/v${CURRENT_VERSION}/saml2aws_${CURRENT_VERSION}_linux_amd64.tar.gz -O - | tar -xzv -C ~/.local/bin
chmod u+x ~/.local/bin/saml2aws
hash -r
sudo chmod u+x .local/bin/saml2aws
hash -r
ll .local/bin/
mv saml2aws /usr/local/bin/
mv .local/bin/saml2aws /usr/local/bin/
chmod u+x /usr/local/bin/saml2aws
saml2aws --version

figure 1: saml2aws version

figure 1: saml2aws version

Finally, you have installed saml2aws.
Thanks for follow the story.