Skip to main content

head-bucket

The aws s3api head-bucket command is used to retrieve metadata from a specified bucket without returning the object itself. This is useful for verifying the existence and configuration of a bucket.

aws s3api head-bucket --bucket BUCKET_NAME

This command will return metadata about the specified bucket.

Syntax

aws s3api head-bucket \
--bucket BUCKET_NAME

Options

  • --bucket: Specifies the name of the Astran S3 bucket for which metadata is being retrieved.

See also the original AWS documentation.