Junior — Middle
What restrictions apply to bucket names in Amazon S3?
sobes.tech AI
Answer from AI
The names of buckets in Amazon S3 must adhere to the following restrictions:
- Length must be between 3 and 63 characters.
- Only lowercase letters (a–z), numbers (0–9), hyphens (-), and dots (.) are allowed.
- The name must start and end with a letter or a number.
- The name cannot be in the format of an IP address (e.g., 192.168.5.4).
- Dots cannot be consecutive (e.g., "my..bucket" is not allowed).
- The name must not contain the substring "xn--" (used for IDN).
- The name must not contain underscores (_).
These restrictions ensure DNS compatibility and proper operation on the internet.
Example of a valid name: my-bucket-123