Skip to content

Can Admin MFA Device Be Used for Enabling S3 MFA Delete?

0

Hello,

I would like to get clarification regarding MFA Delete for Amazon S3.

From the documentation, I understand that MFA Delete can only be enabled or disabled by the root account credentials. My question is:

Is it possible to configure MFA Delete on an S3 bucket using an Admin IAM user’s MFA device, or does it strictly require the root user’s MFA device?

If only the root user can configure it, is there any alternative approach for allowing Admin IAM users to enforce MFA before deleting S3 objects?

I would appreciate your confirmation on this.

asked a year ago218 views

1 Answer
0

Hello.

I tried it on my AWS account, and S3 MFA Delete required an MFA device associated with the root user.

If only the root user can configure it, is there any alternative approach for allowing Admin IAM users to enforce MFA before deleting S3 objects?

Does this mean you want to delete the object with the Admin IAM user?
When deleting an object, specify the root user's MFA as shown below.
The following APIs can also be used by IAM users.

aws s3api delete-object \
--bucket hoge-bucket \
--key test.txt \
--version-id yyyyyyyyyy \
--mfa 'arn:aws:iam::123456789012:mfa/root-account-mfa-device 123456'
{
    "VersionId": "yyyyyyyyyyyyyyyy"
}
EXPERT

answered a year ago

EXPERT

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.