-
Notifications
You must be signed in to change notification settings - Fork 19
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
(cli): migrate fails when retrieving records #235
Comments
Hi @mbonig, Thank you for reporting this issue. After investigating the code, I've identified the root cause of the error you're seeing: Root Cause AnalysisThe error "Value '[]' at 'resources' failed to satisfy constraint: Member must have length greater than or equal to 1" occurs because:
The issue likely stems from one of these scenarios:
I think CDK CLI should have more verbose error messages. Bringing this up to the team for further inputs. |
Which stack are you referring to? the command creates a new stack based on the resources that match the filter, since no resource match the filter, no stack can be created.
You mention "an existing amplify stack", but the Agree with @pahud that we should provide a better error in this case, but the behavior itself seems expected. |
True, I ran the command incorrectly.
Agreed, there shouldn't have been anything in the results.
Sounds good to me. |
Describe the bug
While running:
cdk migrate -n <an existing amplify stack> --filter 'tag-key=user:Application,tag-value=some-value'
I get an error:
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
I would have expected no errors and for the CLI to generate a CDK project based on the given stack
Current Behavior
Fails with an error
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.1004.0 (build f0ad96e)
Framework Version
No response
Node.js Version
20.11
OS
macos 15.3.1
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: