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
#!/usr/bin/env python3 | |
""" | |
Based on: https://gist.github.com/ottokruse/1c0f79d51cdaf82a3885f9b532df1ce5 | |
Usage: | |
- Save this script somewhere on your path (e.g. `vi /usr/local/bin/aws-console && chmod +x /usr/local/bin/aws-console`) | |
- Install dependencies: pip install boto3 | |
- Make AWS credentials available in one of the usual places where boto3 can find them (~/.aws/credentials, env var, etc.) | |
- Excute the script: `AWS_PROFILE=your-profile aws-console` | |
- :tada: Your browser opens and you are signed in into the AWS console |