aws-samples / aws-samples/sample-one-click-generative-ai-solutions
CloudFormation のパラメーターを変更してもデプロイしたソリューションに反映されない
- Dominant language
- HTML
- Stars
- 42
- Forks
- 16
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
## 問題の詳細
CloudFormation カスタムリソースは、プロパティが変更された場合に更新されます。現在の実装では、ProjectName のみがプロパティに含まれているため、ユーザーが他のパラメータを更新して再デプロイしても、カスタムリソースは更新されず、CodeBuild は再実行されません。
https://github.com/aws-samples/sample-one-click-generative-ai-solutions/blob/6c1313ba14706b88c5c4c71d3eac28723ba17dfa/deployments/brchat/BrChatDeploymentStack.yaml#L290-L295
`Version` を `v3` から `v3.1.1` に変更した場合の変更セット:

CloudFormationのイベント。Custom Resourceが含まれないため、CodeBuildプロジェクトの設定は更新されるが、ビルドが実行されない:

## 対処案
- CDKに渡すパラメータをカスタムリソースのプロパティ経由で渡すようにし、スタック更新時にカスタムリソースが更新されるようにする
- デプロイに失敗した場合の手順を提供する(すべてのスタックを削除して再実行する)
- CodeBuildのログを確認する手順を提供する
Contributor guide
Research direction
Start with deployments/brchat/BrChatDeploymentStack.yaml around lines 290-295 and inspect how the custom resource receives deployment parameters. Reproduce the issue by changing Version and reviewing the resulting CloudFormation change set and events. Done means parameter changes update the custom resource and rerun CodeBuild, with the requested deployment-failure and log-checking guidance documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100