aws-samples / aws-serverless-samfarm

This repo is full CI/CD Serverless example which was used in the What's New with AWS Lambda presentation at Re:Invent 2016.
Apache License 2.0
284 stars 240 forks source link

ServerlessPipeline Failure to create S3 bucket: Bucket name should be between 3 and 63 characters long #8

Closed Pseudothink closed 6 years ago

Pseudothink commented 6 years ago

Very similar to the issue @sysout reported, I'm getting a similar error on Step 3. Just like @sysout, the repo I'm using is just the default files from the api subfolder, located in the repo root: https://github.com/Pseudothink/aws-serverless-samfarm

Here's the screenshot of my error (captured in the small interval of time between the CREATE_IN_PROGRESS status and the DELETE_COMPLETE status):

step3-createstack-pipelinefail-02

I'm going to see if I can find out what value it is trying to use for the S3 bucket name, but since these are the default files from the tutorial, I'm guessing that something on the AWS backend changed between the time the tutorial was published and now.

Pseudothink commented 6 years ago

Instead of trying to find out exactly what value it was attempting to use for the S3 Bucket Name, I instead tried using modified templates which shortened the value being used. From the issue @sysout reported, it may also be important to make sure that only lowercase letters are allowed, so I modified two of the templates to enforce that condition for the AppName value.

The modified templates I used are available here, but they would need to be updated to point to an S3 bucket of your own creation, before use: https://github.com/Pseudothink/aws-serverless-samfarm/tree/master/pipeline

After doing this, the CloudFormation stack seemed to get created properly (along with the S3 bucket), without error. step3-createstack-success-01

step3-createstack-success-history