Created
February 8, 2018 09:47
-
-
Save Dgadavin/6b45c5b956e0e0af0e862daf83640cb2 to your computer and use it in GitHub Desktop.
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
Usage: | |
generate_creds.py init | |
generate_creds.py show-roles <account> | |
generate_creds.py generate [--duration=<sec>] [--log-level=<set>] [--account=<name>] | |
[--access=<level>] [--username=<user>] [--non-interactive] | |
[--dry-run] | |
generate_creds.py refresh [--dry-run] | |
generate_creds.py switch [--account=<name>] [--non-interactive] [--dry-run] | |
generate_creds.py (-h | --help) | |
generate_creds.py --version | |
Commands: | |
init Create a new credentials file from some raw input values. | |
show-roles Show list of roles. Specify 'all' to see list of all roles for all accounts. | |
Specify account name 'pnb-stage' to see only roles for this account | |
generate Generate STS credentials in interactive mode | |
refresh Refresh last used credentials | |
switch If you want to switch between account without changing username and access level | |
Options: | |
-h --help Show this screen. | |
--account=<name> AWS account to generate STS credentials. | |
Could provided via the environment variable 'AWS_ACCOUNT_NAME'. | |
--username=<user> Username that you use in AWS 'firstname.lastname'. | |
Could provided via the environment variable 'AWS_USER_NAME'. | |
--access=<level> Level of access (developer|superuser|readonly) [default: developer]. | |
--duration=<sec> The duration, in seconds, that the | |
temporary credentials should remain valid. | |
Could provided via the environment variable 'MFA_STS_DURATION' | |
[default: 3600]. | |
--non-interactive Generate credentials without interactive mode using command line options | |
or ENV variables. | |
--dry-run List all values to stdout without changing credentials file | |
--log-level=<set> Set log level. 'CRITICAL', 'ERROR', 'WARNING', | |
'INFO', 'DEBUG', 'NOTSET' [default: DEBUG]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment