(cli): migrate fails when retrieving records

未关闭
#235 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
aws, typescript
领域
cli, cloud

调研方向

首先,使用 CDK CLI 2.1004.0 和现有的 Amplify 堆栈,复现一次 IaC Generator 扫描,随后使用报告中的标签过滤器运行 cdk migrate。从 cdk migrate 入口点开始跟踪 CLI 的记录检索路径,并检查空资源结果的处理方式。完成的标准是:该命令不再因空 resources 验证错误而失败,并生成预期的 CDK 项目。

由索引模型根据 Issue 内容生成。

描述

aws-cdk bug p2
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:

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

主要语言
TypeScript
星标
110
派生
138
平均合并
1 天 9 小时
30 天内合并 PR
55

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws/aws-cdk-cli 的其他 Issue

查看 aws/aws-cdk-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。