(drift): cdk drift doesn't work with multi-account applications
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- aws, typescript
- 领域
- cli, cloud, infrastructure
调研方向
首先,使用 cdk drift 命令针对部署在多个 AWS 账户中的堆栈重现该问题,然后将其凭证处理方式与 cdk deploy 和 cdk diff 进行比较。当 cdk drift 在进行漂移检测之前承担目标账户的角色,且不需要手动更改凭证时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
Hello 👋🏼
The cdk drift command can't be run against applications that deploy stacks across multiple AWS accounts.
We have a single CDK application where we define hundreds of stacks and deploy them across different AWS accounts from a centralised place. When we run cdk deploy or cdk diff, we use a single set of credentials, and the CDK automatically assumes cdk-{qualifier}-* roles within target accounts.
We want to use cdk drift the same way, without needing to manually assume roles ourselves.
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Library Version
No response
Expected Behavior
cdk drift first assumes a role in the target account, and only then runs drift detection
Current Behavior
We receive the following error: Need to perform AWS calls for account 111111111111, but the current credentials are for 222222222222
Reproduction Steps
- Create an application that deploys stacks across multiple AWS accounts
- Run
cdk drift
Possible Solution
No response
Additional Information/Context
No response
AWS CDK Library version (aws-cdk-lib)
2.186.0
AWS CDK CLI version
2.1020.2
Node.js Version
v22.14.0
OS
MacOS 18
Language
Python
Language Version
3.12
Other information
No response
- 主要语言
- TypeScript
- 星标
- 110
- 派生
- 138
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 55
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws/aws-cdk-cli 的其他 Issue
-
aws-cdk bug needs-triage
难度 2/5 1-3 小时 新手友好度 76/100
aws/aws-cdk-cli#2179 ·
维护者通常 1 天内回复
-
(cli): deploy waits forever when an AWS API call gets no response, because requestTimeout only logs a warning可能已有人在做 @abhiramshaji-cyber 于 27 天前认领。 未关闭aws-cdk bug p2
难度 2/5 1-3 小时 新手友好度 76/100
aws/aws-cdk-cli#2097 ·
维护者通常 1 天内回复
-
(bootstrap) FilePublishingRoleDefaultPolicy permission incorrect when FileAssetsBucketKmsKeyId is an ARN value可能已有人在做 @lemon0333 于 95 天前认领。 未关闭bug p2
难度 2/5 1-3 小时 新手友好度 74/100
aws/aws-cdk-cli#921 · 1 条评论 ·
维护者通常 1 天内回复
-
(garbage-collection): cdk gc takes hours on a large bootstrap bucket可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 3/5 1-2 天 新手友好度 72/100
aws/aws-cdk-cli#2165 ·
维护者通常 1 天内回复
-
(cli): cdk flags --set always reports no template differences before applying flags可能已有人在做 @go-to-k 于 9 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
aws/aws-cdk-cli#2153 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
traPtitech/knoQ_R-UI#290 ·
维护者通常 24 天内回复
-
account bug course exam iris lecture
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
-
Add: New Star SD未关闭check:passed streams:add
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 2 天内回复