내용으로 건너뛰기

S3 buckets with MFA delete

0

I have a bucket with versioning enabled. Expired versions are removed after 30 days using a lifecycle rule.

I want to allow apps to soft-delete objects (i.e. they can issue a DeleteObject which will result in a delete marker, but the object remains in the bucket), but I do not want them to be able to permanently delete objects.

Can I use the MFA delete setting for this? I don't want to stop the lifecycle rule working, and I'm not sure if that is affected by enabling MFA deletes

질문됨 2년 전355회 조회

3개 답변
2

Sure, you can use the MFA delete setting to achieve this since enabling MFA delete will require multi-factor authentication for any request to permanently delete an object version. That means that apps can still issue a DeleteObject request, resulting in a delete marker (soft-delete), but they won't be able to permanently delete objects without the additional MFA authentication. However, it's important to note that MFA delete does not affect lifecycle rules. Your existing lifecycle rule to remove expired versions after 30 days will continue to work as expected.

전문가

답변함 2년 전

1
수락된 답변

Hello.

Although documented in the documentation below, lifecycle rules are not supported on S3 buckets with MFA deletion enabled.
In other words, the settings themselves cannot be configured.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-and-other-bucket-config.html#lifecycle-general-considerations-mfa-enabled-bucket

S3 Lifecycle configuration on multi-factor authentication (MFA)-enabled buckets isn't supported.

전문가

답변함 2년 전

전문가

검토됨 2년 전

0

Hello,

NOTE:** Amazon S3 LifeCycle rules are exempt from MFA Delete restrictions.**

--> Step-by-Step Guide to Register MFA Delete on AWS S3 https://www.geeksforgeeks.org/configuring-mfa-delete-on-s3-buckets/#

Deleting object versions from a versioning-enabled bucket - page 1922 https://docs.aws.amazon.com/pdfs/AmazonS3/latest/userguide/s3-userguide.pdf

How do I turn on MFA delete for my Amazon S3 bucket?

https://repost.aws/knowledge-center/s3-bucket-mfa-delete

Enable MFADelete on S3 with Life Cycle Configuration https://repost.aws/questions/QUqIJY4b7_Te22aIhLp9MQ5w/enable-mfadelete-on-s3-with-life-cycle-configuration

답변함 2년 전

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

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

관련 콘텐츠