On 04/19/2013 01:10 PM, Netflix Boundaries wrote:
> Hello Nathan and Adrian
>
> Even though I'm not a programmer or python-knowledged guy, your guidance
> was very helpful. Thanks for the reference.
>
> To accomplish the objective is very important the following before
> proceeding:
>
>
> Bucket names should not contain upper case letters
> Bucket names should not contain underscores (_)
> Bucket names should not end with a dash
> Bucket names should be between 3 and 63 characters long
> Bucket names cannot contain dashes next to periods (e.g.,
> "my-.
bucket.com" and "my.-bucket" are invalid)
> Bucket names cannot contain periods
>
> Below what worked for me:
>
>
> #!/usr/bin/env python
> # encoding: utf-8
>
> from boto.s3.connection import S3Connection
> from time import strftime
> aws_key = ''
> aws_secret_key = ''
> conn = S3Connection(aws_key, aws_secret_key)
> bucket_creation_date_time = strftime("%m%d%y--%H%M%S")
> bucket = conn.create_bucket('bucketname--' + bucket_creation_date_time)
>
Again, remember there is a limit of 100 buckets per account. Within a