Back to articles
January 22, 2025

Get VersionId of Object in S3 bucket

aws s3api list-object-versions
 --bucket ${bucket_name} 
 --prefix ${bucket_path}/${object_name} | jq ".Versions[].VersionId"
Loading comments...