chore: fix reference to weak reference #1389
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Changes
CDK および CloudFormation ではクロススタック参照は公式では強い参照のみを実装している。
スタック間の不整合を伴う可能性のある変更を避け、そのような変更はユーザー側での多段階デプロイによる安全なデプロイもしくは自己責任での弱い参照導入を想定している。
弱い参照の方がいいスタック(デプロイパラメータパラメータの変更にて有効化無効化などで依存関係を一時的に解消することなく内容の変更が発生する依存関係)
ApplicaitonInferenceProfile - モデル変更の際に参照変更を伴う
AgentCoreStack - すでに導入済み。GenericAgent と AgentBuilder を同じスタックに入っているため片方のみを無効化した際にデプロイエラーになる
AgentStack - Search Agent と Code Interpreter Agent が同じスタックに入っているため片方のみを無効化した際にデプロイエラーになる
強い参照で問題ないスタック(デプロイパラメータの変更など通常のオペレーションでは強い参照が課題にならないため)
Knowledgebase - KB の作り直しが発生したりする変更は止めた方が良いので強い参照維持
ClosedNetwork - VPC を変更したり等はあまり発生しない想定のため強い参照維持
Dashboard - メインスタックの UserPool は変更されない想定のため強い参照維持
VideoBucket - 基本的にスタック内での変更ではなくメインスタックが参照するのが別リージョンのスタックになるため強い参照で問題ない
Guardrail - 今の所パラメータで設定変更されず有効化無効化のみのため。今後ルールをパラメータで変更する可能性がある場合弱い参照に切り替え
CloudFrontWAF - ルールが変更されてもWAF 自体の変更はないため。過去 #942 ExportName を変更するような誤った破壊的変更があったようなことがない限りは問題ない
Checklist
npm run cdk:testand if there are snapshot differences, executenpm run cdk:test:update-snapshotto update snapshotsRelated Issues
#942
#1285
#1385