-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
開発者ごとに Stack が分けられるようにする #43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用している Construct は Auth, Api, Web, Database, Rag, LLM ですが、 LLM 以外には名称渡す必要ないでしょうか?
packages/cdk/lib/construct/llm.ts
Outdated
|
||
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
|
||
// Specify Endpoint with stage suffix | ||
const stage = this.node.tryGetContext('stage'); | ||
this.endpointName = `llm-jp-endpoint-${stage}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefix にするか suffix にするかは統一したほうが良いと思いました。prefix に統一ですかね?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefix に統一します
packages/cdk/lib/construct/llm.ts
Outdated
@@ -21,11 +21,15 @@ export class LLM extends Construct { | |||
'-' + new Date().toISOString().replace(/[:T-]/g, '').split('.')[0]; | |||
public readonly endpointConfigName = | |||
'llm-jp-endpoint-config' + this.deploy_suffix; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
endpointConfigName
にも ${stage}
の付与が必要ですか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確かに同時にデプロイするとコンフリクト起こすかもしれないので Prefix 付与します。
8b039ac
to
57c853f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
レビュー結果が反映されていることを確認しましたのでマージします。
Issue
#38
Description
-c stage=<stage>
でデプロイ環境を分けれるように変更