Retrieving AWS S3 Object Metadata
You can retrieve detailed metadata about an S3 object using the aws s3api head-object command. This is useful when you need to check object properties, sizes, modification times, or custom metadata without downloading the entire file. Basic Usage The simplest form queries an object’s metadata: aws s3api head-object –bucket test-hkust –key dir2/fileupload/fb0c6353-a90c-4522-9355-7cd16cf756ff.file.txt This returns output…
