Getting Access denied error while using aws cli for enabling MFA delete on S3 bucket

0
  1. Created user and that user having administrator permission and as well S3 bucket full access.
  2. Created S3 bucket with default setting.
  3. Trying to enable MFA delete via aws cli but getting access denied error. Enter image description here

I have analyzed in net and found, root account should enable this. But I am having all rights in my tenant account but still i am unable to do. Kindly provide suggestion to resolve this.

Subha
질문됨 한 달 전149회 조회
2개 답변
0
수락된 답변

Hello.

Please try using the AWS account root user as described in this document.
https://repost.aws/knowledge-center/s3-bucket-mfa-delete

The AWS account root user is the user who signs in using their email address.
Please check that you can sign in by following the steps in the document below.
https://docs.aws.amazon.com/signin/latest/userguide/introduction-to-root-user-sign-in-tutorial.html

profile picture
전문가
답변함 한 달 전
profile pictureAWS
전문가
SriniV
검토됨 한 달 전
profile pictureAWS
전문가
검토됨 한 달 전
  • Sure, will try as root user and let me update.

  • Sure, will try as root user and let me update.

  • Its working when try with root user. Thanks

0

Hi,

It seems that you are using MFA with CLI.

Did you properly configure CLI to use MFA ? See https://repost.aws/knowledge-center/authenticate-mfa-cli for all details

Best,

Didier

profile pictureAWS
전문가
답변함 한 달 전
  • Hi Didier, Yes I have properly configured but used IAM user for doing for MFA delete. As suggested above, will check with root user and share my feedback.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠