Skip to content

Instantly share code, notes, and snippets.

@tongueroo
Created April 4, 2024 01:37
Show Gist options
  • Save tongueroo/d752186375ea95ed310e6735de24a324 to your computer and use it in GitHub Desktop.
Save tongueroo/d752186375ea95ed310e6735de24a324 to your computer and use it in GitHub Desktop.
s3://rails-demo-dev-s3bucket-kwsoitrtdjsk/jets/cfn/shas/1c31de0a/shared-alert.yml
Uploading assets to S3
Running Procfile release: bundle exec rails db:migrate # via config
[dotenv] Loaded config/jets/env/.env
Detecting if parent template has changed? true
Deploying app: rails-demo-dev
DEBUG bootstrap/deploy.rb update_stack Stack:arn:aws:cloudformation:us-west-2:536766270177:stack/rails-demo-dev/ccc864d0-ef19-11ee-9929-0a1a2a6a7ce7 is in UPDATE_ROLLBACK_FAILED state and can not be updated.
The Jets application failed to deploy. Jets creates a few CloudFormation stacks
to deploy your application. The logs above show the CloudFormation parent stack
events. You can go to the CloudFormation console and look for the nested stack
with the error. The specific nested stack usually shows more detailed information
and can be used to resolve the issue.
Example of checking the CloudFormation console:
https://docs.rubyonjets.com/docs/debug/cloudformation/
--------------------------------------------------------------------------------
Here's the nested stack error details: Embedded stack arn:aws:cloudformation:us-west-2:536766270177:stack/rails-demo-dev-TemperatureEvent-NF2LIKH9KYAS/28a3b770-f21f-11ee-b543-0adfe121a2ff was not successfully created: The following resource(s) failed to create: [RecordLambdaFunction].
Stack arn:aws:cloudformation:us-west-2:536766270177:stack/rails-demo-dev-TemperatureEvent-NF2LIKH9KYAS/28a3b770-f21f-11ee-b543-0adfe121a2ff Status: CREATE_FAILED
Stack events:
01:03:33AM CREATE_IN_PROGRESS AWS::CloudFormation::Stack rails-demo-dev-TemperatureEvent-NF2LIKH9KYAS User Initiated
01:03:35AM CREATE_IN_PROGRESS AWS::CloudFormation::Stack rails-demo-dev-TemperatureEvent-NF2LIKH9KYAS Transformation succeeded
01:03:36AM CREATE_IN_PROGRESS AWS::Lambda::Function RecordLambdaFunction
01:03:37AM CREATE_FAILED AWS::Lambda::Function RecordLambdaFunction rails-demo-dev-temperature_event-record already exists in stack arn:aws:cloudformation:us-west-2:536766270177:stack/rails-demo-dev-TemperatureEvent-1X0196IQAMWZH/51791550-f1f7-11ee-9206-06fdae4fa417
01:03:37AM CREATE_FAILED AWS::CloudFormation::Stack rails-demo-dev-TemperatureEvent-NF2LIKH9KYAS The following resource(s) failed to create: [RecordLambdaFunction].
Here's also the AWS Console link to the failed nested stack:
https://us-west-2.console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/events?filteringText=&filteringStatus=active&viewNested=true&stackId=arn:aws:cloudformation:us-west-2:536766270177:stack/rails-demo-dev-TemperatureEvent-NF2LIKH9KYAS/28a3b770-f21f-11ee-b543-0adfe121a2ff
rails-demo on main [⇡] via  v20.11.0 via 💎 v3.2.3 on tung (us-west-2) took 21s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment