(hotswap): CLI --hotswap fails with RDS Databases in the stack

オープン
#1,435 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
aws, docker, typescript
領域
cli, cloud, databases

調査の方向性

まず、同じスタック内に ECS Fargate コンテナと AWS::RDS::DBInstance を配置して問題を再現し、次に CloudFormation テンプレートが解決される CLI の hotswap デプロイパスを追跡します。変更したコンテナイメージが --hotswap で正常にデプロイされ、RDS データベースが無視されて変更されない状態になれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug effort/medium
Describe the bug

cdk deploy --hotswap is not working when an RDS Database is part of the stack.

Following message occurs in the output:
Could not perform a hotswap deployment, because the CloudFormation template could not be resolved: We don't support attributes of the 'AWS::RDS::DBInstance' resource.

Note: there are no changes to the database inside of the cdk code used. Only the container image was changed.

Regression Issue
  • Select this option if this issue appears to be a regression.
Last Known Working CDK Library Version

No response

Expected Behavior

Container running with new image after the --hotswap deployment.
RDS Database should be ignored and not touched

Current Behavior

Image was build and uploaded.
cdk deploy --hotswap finishes with errors.
Old container images are still running (no new deployments)

Reproduction Steps
  1. Create a stack with ECS Fargate container and a RDS Database inside.
  2. Change something in the Dockerfile for the container
  3. Run cdk deploy --hotswap
Possible Solution

No response

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

2.223.0

AWS CDK CLI version

2.1032.0

Node.js Version

20.18.3

OS

RHEL 9.4

Language

TypeScript

Language Version

No response

Other information

No response

主要言語
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 を短くまとめたダイジェスト。