Sobes.tech
Junior — Middle

Are there any restrictions on bucket names in Amazon S3?

sobes.tech AI

Answer from AI

Yes, there are naming restrictions for buckets in Amazon S3:

  • The name must be globally unique across all regions.
  • The length of the name should be between 3 and 63 characters.
  • Only lowercase letters, numbers, dots (.), and hyphens (-) can be used.
  • The name must not be in the format of an IP address (e.g., 192.168.5.4).
  • The name cannot start or end with a dot or hyphen.
  • Consecutive dots are not allowed (e.g., "my..bucket" is prohibited).

These rules ensure DNS compatibility and allow buckets to be used in URLs.