Created
April 17, 2021 23:41
-
-
Save bertrandmartel/f8aabc34ec489a015a70389e7a9c95bf to your computer and use it in GitHub Desktop.
re-enable mfa device in aws
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
aws iam deactivate-mfa-device --user-name MFA_NAME --serial-number "arn:aws:iam::ACCOUNT_ID:mfa/MFA_NAME" | |
aws iam delete-virtual-mfa-device --serial-number arn:aws:iam::ACCOUNT_ID:mfa/MFA_NAME | |
aws iam create-virtual-mfa-device --virtual-mfa-device-name MFA_NAME --outfile mfa --bootstrap-method QRCodePNG | |
aws iam enable-mfa-device --user-name MFA_NAME --serial-number "arn:aws:iam::ACCOUNT_ID:mfa/MFA_NAME" --authentication-code1 "CODE1" --authentication-code2 "CODE2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment