1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWSコンソールにログインするためのMFA(多要素認証)をAWS CLIで無効化する

Posted at

MFAデバイスを失ってAWSコンソールにログインできなくなってしまった!そんなとき、AWS CLIが使えて権限さえついていれば自分自身でMFAを無効化できる。

aws iam list-mfa-devices --user-name {ユーザー名}

ここで表示されるSerialNumberarn:aws:iam::***:mfa/***)を控えておいて、

aws iam deactivate-mfa-device --user-name {ユーザー名} --serial-number {シリアルナンバー}

以上でもうログインできるようになっている。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?