In Amazon S3 CLI, there are only a handful commands:
We can use
cp command to retrieve S3 object:
But if only the metadata of the object, such as
Content-Type is needed, the S3 CLI does not have any command to do that.
Just need the metadata of the object, use
head-object, which retrieves metadata without the object itself, as HTTP HEAD method: