1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
No sure what is it you are looking for, If you are using AWS console and have permission to bypass object lock "s3:BypassGovernanceRetention" it should work automatically. if you are looking for cli option you can check the options here
and example command to delete all the object version with locks overwrite should look like this:
aws s3api delete-objects --bucket BUCKET_NAME --bypass-governance-retention --delete "$(aws s3api list-object-versions --bucket BUCKET_NAME --output=json --query='{Objects: Versions[].{Key:Key,VersionId:VersionId}}')"
답변함 일 년 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전