S3 bucket and object naming in ECS
Bucket and object names must conform to the ECS naming specification when using the ECS S3 Object API.
Bucket name
The following rules apply to the naming of S3 buckets in ECS:
- Must be between one and 255 characters in length. (S3 requires bucket names to be 1–255 characters long)
- Can include dot (.), hyphen (-), and underscore (_) characters and alphanumeric characters ([a-zA-Z0-9])
- Can start with a hyphen (-) or alphanumeric character.
- Cannot start with a dot (.)
- Cannot contain a double dot (..)
- Cannot end with a dot (.)
- Must not be formatted as IPv4 address.
You can compare this with naming restriction that is specified by the S3 specification:
http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html.
Object name
The following rules apply to the naming of S3 objects in ECS:
- Cannot be null or an empty string
- Length range is 1..255 (Unicode char)
- No validation on characters