andreineculau / fl-aws

Flaws at AWS
Apache License 2.0
15 stars 0 forks source link

s3 limitations #9

Open andreineculau opened 7 years ago

andreineculau commented 7 years ago

unlike other AWS services, S3 buckets are global and not even scoped by an AWS account, meaning the names need to be unique.

if you want to save yourself the trouble if later on you want to have one bucket per region, name them with a region suffix.

on top of that, bucket contents can be accessed via HTTP, and HTTPS if and only if they don't contain dots. so once again save yourself the trouble and don't use any dots.

the simplest advice that I have is to treat them like domain names, all lowercase, all alphanumeric and hyphens. e.g. <my-own-bucket>-<at-my-company-tld>-<in-this-region> -> builds-example-com-eu-west-1

it is beyond me why there isn't any naming limitation and/or automatic translation. KISS should prevail!