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}}')"
回答済み 1年前
関連するコンテンツ
- AWS公式更新しました 1年前