2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
@ST Team, you can use the ExpiredObjectDeleteMarker
in the rule section of a lifecycle policy in CloudFormation - more info at https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-rule-expiredobjectdeletemarker
답변함 일 년 전
0
Hi,
You should set these values:
- AWS::S3::Bucket NoncurrentVersionExpiration: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule-noncurrentversionexpiration.html
- ExpiredObjectDeleteMarker: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-rule-expiredobjectdeletemarker
Resources:
S3Bucket:
Type: AWS::S3::Bucket
Properties:
LifecycleConfiguration:
Rules:
- Id: MyRule
Status: Enabled
NoncurrentVersionExpiration:
NoncurrentDays: 30
ExpiredObjectDeleteMarker: true
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전