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 hidden or 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
| version: '3.8' | |
| services: | |
| aws-azure-login: | |
| image: dtjohnson/aws-azure-login # This an old Docker image that still works :-) | |
| container_name: aws-azure-login-container | |
| working_dir: /root # Set the working directory to /root | |
| volumes: | |
| - ${HOME}/.aws:/root/.aws # Mount the local ~/.aws directory to /root/.aws inside the container | |
| stdin_open: true # Keep STDIN open even if not attached | |
| tty: true # Make a pseudo-TTY | |
| build: | |
| context: . | |
| command: [ "sh", "-c", "while :; do sleep 2073600; done" ] # Keep the container running (not needed) | |
| ## How to run the container | |
| # docker attach aws-azure-login-container | |
| ## Then enter the credentials |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment