aws / aws/aws-cdk-cli

(cli): migrate fails when retrieving records

Open
#235 3 comments 0 reactions 0 assignees View on GitHub
aws-cdk bug p2
Dominant language
TypeScript
Stars
105
Forks
122
Avg merge
1d 17h
Merged PRs (30d)
71

Description

### Describe the bug

While running:

`cdk migrate -n --filter 'tag-key=user:Application,tag-value=some-value'`

I get an error:

```
1 validation error detected: Value '[]' at 'resources' failed to satisfy constraint: Member must have length greater than or equal to 1
```

### Regression Issue

- [ ] Select this option if this issue appears to be a regression.

### 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

* run an IaC Generator scan against an account.
* cdk migrate -n --filter 'tag-key=user:Application,tag-value=some-value'

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.