stacker icon indicating copy to clipboard operation
stacker copied to clipboard

Better handle bucket name length limits

Open phobologic opened this issue 8 years ago • 2 comments

http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html#bucketnamingrules

Bucket names must be at least 3 and no more than 63 characters long

Right now we just throw a generic bucket name error:

botocore.exceptions.ClientError: An error occurred (InvalidBucketName) when calling the CreateBucket operation: The specified bucket is not valid.

We can probably do better and catch some of these rules earlier.

phobologic avatar Jul 03 '17 21:07 phobologic

Do the bucket names need to be DNS compliant in Stacker? It looks like you can create names longer than 63 characters.

jesse-peters avatar Jul 08 '17 05:07 jesse-peters

Hmmm - I think they do, because of the way that Cloudformation addresses them. This is worth investigating more.

phobologic avatar Jul 12 '17 22:07 phobologic