Resources created by CDK missing in console
See original GitHub issueNot 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
- Define Activity CDK (also works for IAM roles, StepFunctions):
Make sure that deployment passed correctly and there activity is actually existsval activity = Activity.Builder.create(this, "FirstName").activityName("FirstName").build()
- Delete it from CDK Make sure that CF report that deletion succeeded. Verify that resource is actually gone.
- Add it back
Run deployment Check console:val activity = Activity.Builder.create(this, "FirstName").activityName("FirstName").build()
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.
- Open CloudFormation template and see:
- 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:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Not really actionable for us. Sorry.
⚠️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.