使用安全令牌服务的aws登录
aws-login的Python项目详细描述
一个简单的命令行实用程序,使用基于角色的访问和安全令牌服务登录到aws帐户。
选项
用法:aws_login[选项]操作
Aws-login is an AWS Helper CLI for using Role Based Access, easy and securly open the management console with the command line.
Actions:
aws-login start-mfa-session, aws-login mfa
aws-login add-profile, aws-login add
aws-login open-console, aws-login oc
aws-login print-console, aws-login pc
- 选项:
-s, --source-profile TEXT The source profile. -t, --target-profile TEXT The target profile. -r, --role TEXT The role to assume -a, --account-id TEXT Account ID to assume the role -v, --verbose show verbose output. -p, --profile TEXT Use this profile for mfa session or opening console. -E, --mfa-expiration INTEGER number of seconds after which the MFA credentials are no longer valid -R, --role-expiration INTEGER number of seconds after which the role credentials are no longer valid -C, --console-expiration INTEGER number of seconds after which the console credentials are no longer valid -T, --token TEXT from your MFA device -h, --help Show this message and exit.
示例