https://github.com/umihico/aws-magic-link
The magic link generator to log-in AWS console by CLI credentials.
https://github.com/umihico/aws-magic-link
aws iam shell-script
Last synced: about 1 month ago
JSON representation
The magic link generator to log-in AWS console by CLI credentials.
- Host: GitHub
- URL: https://github.com/umihico/aws-magic-link
- Owner: umihico
- Created: 2021-11-30T12:44:23.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-30T23:51:31.000Z (almost 4 years ago)
- Last Synced: 2025-03-05T09:51:11.950Z (7 months ago)
- Topics: aws, iam, shell-script
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws-magic-link
The magic link generator to log-in AWS console by CLI credentials.
## Demo
1. Just run the script and you'll get the magic link as output. Open it with your browser.
```bash
> sh aws-magic-link.shhttps://signin.aws.amazon.com/federation?Action=login&Destination=https://console.aws.amazon.com/&SigninToken=SUPER_LONG_TOKEN_COMES_HERE
```## Requirements
- Shell (Linux or Mac)
- AWS Command Line Interface (CLI) with valid IAM user credential
- jq## Advanced usage
- Specify AWS profile by modifying this line
```bsah
export AWS_PROFILE=default
```- Remove `#` and enable this line to open chrome automatically
```bsah
# open -a 'Google Chrome' $LOGIN_URL
```