Skip to content
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

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

maekawataiki
Copy link
Contributor

Issue
#38

Description

  • デプロイ時に -c stage=<stage> でデプロイ環境を分けれるように変更

Copy link
Collaborator

@icoxfog417 icoxfog417 left a 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 以外には名称渡す必要ないでしょうか?


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}`;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefix にするか suffix にするかは統一したほうが良いと思いました。prefix に統一ですかね?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefix に統一します

@@ -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;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

endpointConfigName にも ${stage} の付与が必要ですか?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かに同時にデプロイするとコンフリクト起こすかもしれないので Prefix 付与します。

@maekawataiki maekawataiki force-pushed the issue-38/multiple-stack branch from 8b039ac to 57c853f Compare January 17, 2024 13:28
Copy link
Collaborator

@icoxfog417 icoxfog417 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

レビュー結果が反映されていることを確認しましたのでマージします。

@icoxfog417 icoxfog417 merged commit 11363d1 into main Jan 22, 2024
1 check passed
@icoxfog417 icoxfog417 deleted the issue-38/multiple-stack branch January 22, 2024 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants