Once you have created a S3 bucket and if you would like to the Metadata of that S3 bucket using the AWS CLI command, Using the HEAD action able to retrieves metadata from an object without returning the object itself. to use HEAD, have READ access to the object by default.
the AWS CLI command is,
aws s3api head-object --bucket <BUCKET_NAME> --key <OBJECT_NAME>
aws s3api head-object --bucket bucketname-thelinuxfaq --key artifact/location/filename.war
Comments (0)