question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Resources created by CDK missing in console

See original GitHub issue

Not sure who is responsible for this bug: CloudFormation or CDK, but this is super annoying:

CDK runs into permanent state when any creation of resource with name reported as Successful while there is no any resource is created.

Reproduction Steps

  1. Define Activity CDK (also works for IAM roles, StepFunctions):
    val activity = Activity.Builder.create(this, "FirstName").activityName("FirstName").build()
    
    Make sure that deployment passed correctly and there activity is actually exists
  2. Delete it from CDK Make sure that CF report that deletion succeeded. Verify that resource is actually gone.
  3. Add it back
    val activity = Activity.Builder.create(this, "FirstName").activityName("FirstName").build()
    
    Run deployment Check console:
     9/44 | 4:25:25 PM | CREATE_COMPLETE      | AWS::StepFunctions::Activity     | FirstName (FirstName306E36D3)
    
    • Open CloudFormation template and see: CREATE_COMPLETE Check that there is everything green in event log - all green and reports as resource creted.
    • Click on Physical ID and enjoy 404 resource not found.
    • Check that there is no anything in activities list.
  4. Try to delete, change properties etc runs into error that there is no such resource.

Error Log

No errors. All Green. Resource is not created.

Environment

  • CLI Version : 1.23?
  • Framework Version: 1.23
  • Node.js Version: 12.18.0
  • OS : linux
  • Language (Version): Java (8)

Other


This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
rix0rrrcommented, Jan 26, 2021

Not really actionable for us. Sorry.

0reactions
github-actions[bot]commented, Jan 26, 2021

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting common AWS CDK issues
This topic describes how to troubleshoot the following issues with the AWS CDK.
Read more >
AWS CDK: Adding new stack not working (not showing up)
What I am trying is, inside "newStack", I have defined/created all other Stacks. Probably my naming is confusing. "newStack" is a construct. So ......
Read more >
CDK refactoring, logical IDs and deleted resources - Medium
Learn about AWS CDK Refactoring and CloudFormation Logical IDs, when this can cause resources to be deleted and re-created, and how to avoid...
Read more >
Did you manually delete a resource created by AWS ...
Some resources, like an IAM role that is tracked by name, may be re-created with the same exact name if they are manually...
Read more >
Top 10 Serverless Deployment Errors (and How to Fix Them)
Rollbacks may fail when expected files or resources are missing. ... You can find a quick link to the CloudFormation console in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found