First Download the Android SDK Commandline Tool only.
https://developer.android.com/studio/
Goto Download Options
Find Commandline tools only Section
#!/bin/bash -e | |
# How to use this script: | |
# 1. Follow these instructions to configure a single AWS account to do initial login with SSO | |
# https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html | |
# 2. Export AWS_PROFILE=... and then run "aws sso login" to get an SSO token | |
# 3. Once signed in with AWS SSO, run this script to automatically list out all the other accounts and roles and add them to your config file | |
# If you want to filter roles / accounts in the process, or validate config before committing it, you can customise the script to do this. |
# Inspired by this great answer... | |
# https://stackoverflow.com/a/60785401 | |
import yaml | |
class SafeUnknownConstructor(yaml.constructor.SafeConstructor): | |
def __init__(self): | |
yaml.constructor.SafeConstructor.__init__(self) | |
def construct_undefined(self, node): |
First Download the Android SDK Commandline Tool only.
https://developer.android.com/studio/
Goto Download Options
Find Commandline tools only Section