Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable AWS S3 MFA delete with the console

Is it possible to enable AWS S3 MFA delete with the console? How?

I don't manage to find any way to do it, neither have found any answer googling.

like image 556
Medical physicist Avatar asked Sep 17 '16 18:09

Medical physicist


1 Answers

No - you can enable versioning on the bucket but you cannot enable MFA delete.

You can do it via the AWS CLI:

aws s3api put-bucket-versioning --bucket bucketname --versioning-configuration Status=Enabled,MFADelete=Enabled --mfa "your-mfa-serial-number mfa-code"

Note that the command above also enables bucket versioning.

like image 137
jzonthemtn Avatar answered Sep 28 '22 03:09

jzonthemtn