Last active
August 31, 2024 17:43
-
-
Save habedi/d663dd62cfe2c2c9fc157e775e121e67 to your computer and use it in GitHub Desktop.
A simple Bash script for creating temporary AWS access keys using the aws-azure-login tool (see https://github.com/aws-azure-login/aws-azure-login) #aws #saml #azure_sso
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
#!/bin/bash | |
# Description: This script will create the AWS access keys using the Azure account credentials. | |
# First, run the docker container (code below) and then enter the Azure account credentials. | |
# The AWS access keys will be created and stored in the ~/.aws/credentials file in the host machine. | |
docker run -it --rm \ | |
--name aws-azure-login \ | |
--workdir /root \ | |
-v ${HOME}/.aws:/root/.aws \ | |
dtjohnson/aws-azure-login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment