Skip to content

Instantly share code, notes, and snippets.

@habedi
Last active August 31, 2024 17:43
Show Gist options
  • Save habedi/d663dd62cfe2c2c9fc157e775e121e67 to your computer and use it in GitHub Desktop.
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
#!/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