Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to launch stack #15

Closed
imkheong opened this issue Jan 29, 2017 · 7 comments
Closed

Unable to launch stack #15

imkheong opened this issue Jan 29, 2017 · 7 comments

Comments

@imkheong
Copy link

Firstly, great effort in putting up the reference architecture, well done guys!

I have been trying to launch the stack recently to no avail.

I was using a user with admin role, and subsequently a root user (this is for my personal account, and I know this is a security risk). I used the default setting during the launch, I did not use IAM role to launch the stack.

This is the error when I click on the stack in Cloud Formation:

ROLLBACK_IN_PROGRESS AWS::CloudFormation::Stack serverless-web-refarch The following resource(s) failed to create: [DDBConfigTable, LambdaToDynamoDBUserTableRole, WebsiteBucket]. . Rollback requested by user.

What could be the issue and how can I get around the error?

Thanks!

@devendradhanal
Copy link

@imkheong I am also facing same problem and my scenario is identical to yours.

@devendradhanal
Copy link

@imkheong
Hi,
Changing
"Runtime": "nodejs" to "Runtime" : "nodejs4.3"
in
cognito-creation-helper.template and config-helper.template
solved my problem

Steps :

  1. Change "Runtime": "nodejs" to "Runtime" : "nodejs4.3" in all .template files
  2. Change TemplateURL to point to your custom .template files w.r.t to step 3 in serverless-web-master.template
  3. Upload template files to your account's S3 bucket
  4. Instead of clicking on "launch stack" button from lambda-refarch-webapp choose either of the following option
  • Upload a template to Amazon S3
  • Specify an Amazon S3 template URL

@rohitanytime
Copy link

Still getting error on stack creation, I see that templates are already fixed to nodejs4.3.
I am getting below error
 20:02:24 UTC-0600 CREATE_FAILED AWS::S3::Bucket WebsiteBucket Property BucketName cannot be empty if specified.

@jefferyhe
Copy link

jefferyhe commented Dec 5, 2017

@rohitanytime During stack creation, under the Specify Details page, the 'HostingBucket' field is empty, just put a random name. That resolved my issue.

@rohitanytime
Copy link

rohitanytime commented Dec 5, 2017 via email

@SCorwinAtDRB
Copy link

The HostingBucket field needs to be filled in with an allowed name. A random name is fine if it's sufficiently random. From http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html: "A bucket name must be unique across all existing bucket names in Amazon S3. We recommend that all bucket names comply with DNS naming conventions." I finally put a timestamp at the end of mine.

Also, based on my experience getting this to work, DynamoDB table names need to be unique within an Amazon account. So if the stack creation fails you need to delete any partially-created stacks before trying again.

@hanish-garg
Copy link

getting error for ConfigHelperStack...please help and advise

Embedded stack arn:aws:cloudformation:us-east-1:570585003507:stack/serverless-web-refarch-2-ConfigHelperStack-U9F0YSLGOX2J/b6b718b0-9827-11e9-8a12-0a3a983b5e88 was not successfully created: The following resource(s) failed to create: [AddConfigSetting].

  | Physical ID:arn:aws:cloudformation:us-east-1:570585003507:stack/serverless-web-refarch-2-ConfigHelperStack-U9F0YSLGOX2J/b6b718b0-9827-11e9-8a12-0a3a983b5e88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants