AWS MFA - Manage Session Token easily
Project description
AWS CLI MFA
Developed by Ajeet Yadav
Example of How To Use
# Setup ARN and profile name
cli-aws-mfa init
# Refresh Session Token
cli-aws-mfa refresh
Policy Used for CLI MFA
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "MustBeSignedInWithMFA",
"Effect": "Deny",
"NotAction": [
"iam:CreateVirtualMFADevice",
"iam:DeleteVirtualMFADevice",
"iam:ListVirtualMFADevices",
"iam:EnableMFADevice",
"iam:ResyncMFADevice",
"iam:ListAccountAliases",
"iam:ListUsers",
"iam:ListSSHPublicKeys",
"iam:ListAccessKeys",
"iam:ListServiceSpecificCredentials",
"iam:ListMFADevices",
"iam:GetAccountSummary",
"sts:GetSessionToken"
],
"Resource": "*",
"Condition": {
"BoolIfExists": {
"aws:MultiFactorAuthPresent": "false"
}
}
}
]
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cli-aws-mfa-0.0.6.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for cli_aws_mfa-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e9b7a87186b81fd22c915c00fe875a69ba66f95d047601d4b5d96d61a39870c |
|
MD5 | 22bf169f46049e39eff5296c73065dfc |
|
BLAKE2b-256 | 7da625f835771410050cc97a87700634da965b14edc807ffcea9e0597ad571f3 |