(hotswap): Support for skipping resources in hotswap

オープン
#895 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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時間
マージ済み PR(30日)
55

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/aws-cdk-cli のほかの issue

aws/aws-cdk-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。