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.8.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for cli_aws_mfa-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac6d2ca99c20d8a6b88e40aa86347ffb0fb4e37a47c3f6cc7bdd4af0d0711033 |
|
MD5 | 17481ff1ab160950a953b88568e5f232 |
|
BLAKE2b-256 | 1103c1150dce941d500758e98f32c5ff5176269b6fc6418bdc3e85eac1628227 |