AWS CLI MFA - Easily Manage Session Token
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.7.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for cli_aws_mfa-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d53038633aa62c2d6cb88c355021cc7e3c5f59bcbf2f5e5060c9ebbc9a8c157 |
|
MD5 | b3d0d198368b0c392d63b470a9de6e0b |
|
BLAKE2b-256 | d86705d17abbaee657bf86481678b66d8de8c8724e66e9a155194f16f0da876e |