(hotswap): Support for skipping resources in hotswap

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
aws, typescript

调研方向

首先跟踪 hotswap 入口点,以及 cdk diff 和 cdk deploy 如何选择资源。使用 AWS::Lambda::Function 和 Custom::CDKBucketDeployment 作为白名单示例,将所请求的行为与现有的 hotswap 开发流程进行比较。完成标准是 hotswap 能够排除所有其他资源,同时不改变现有的 CloudFormation 部署系统。

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

描述

aws-cdk effort/medium feature-request p2
Maintainer's note

We are not planning to force this feature into the existing CloudFormation deployment system. However it is a perfectly fine addition to the hotswap development feature.

Treating this as a hotswap feature request.


Describe the feature

I'd like to see a CDK equivalent of this Pulumi feature.

Use Case

When managing both infrastructure and application code within the same stack and deploying through a single pipeline, certain challenges arise. For example, consider a monorepo where the CDK code is stored in a /cdk folder and the application code in a /app folder. If a developer modifies only the /app folder, the pipeline still triggers a cdk diff command. What's needed is a way to exclude all resources except for:

  • AWS::Lambda::Function
  • Custom::CDKBucketDeployment

This would allow developers to make application changes without affecting unrelated parts of the infrastructure. It also relieves them from the responsibility of managing infrastructure code directly. Even if configuration drift occurs in other resources, the deployment would only act on the whitelisted resources and ignore the rest. In a separate pipeline, the platform team could then run a full cdk diff and cdk deploy to reconcile and apply changes across the entire stack.

Proposed Solution

No response

Other Information

No response

Acknowledgements
  • I may be able to implement this feature request
  • This feature might incur a breaking change
CDK version used

2.1029.3

Environment details (OS name and version, etc.)

Ubuntu 24.04

主要语言
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 摘要。