--- title: "Determine if bucket exists" slug: "determine-if-bucket-exists-boto3-tg" tags: ["5.4"] updated: 2026-10-28T01:54:14Z published: 2026-10-28T01:54:14Z canonical: "docs.vastdata.com/determine-if-bucket-exists-boto3-tg" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # Determine if bucket exists The [head_bucket()](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.head_bucket) method is used to determine if a bucket exists and if the user has permission to access it.