forked from aws-samples/failure-analysis-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameter_template.ts
54 lines (51 loc) · 1.67 KB
/
parameter_template.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { Environment } from "aws-cdk-lib";
export type Language = "ja" | "en";
export type SlashCommands = {
insight: boolean;
findingsReport: boolean;
};
export interface AppParameter {
env?: Environment;
language: Language;
envName: string;
modelId: string;
slackAppTokenKey: string;
slackSigningSecretKey: string;
architectureDescription: string;
cwLogsLogGroups: string[];
cwLogsInsightQuery: string;
databaseName?: string;
albAccessLogTableName?: string;
cloudTrailLogTableName?: string;
xrayTrace: boolean;
slashCommands: SlashCommands;
detectorId?: string;
}
// Parameters for Dev Account
export const devParameter: AppParameter = {
env: {
account: "123456789012",
region: "us-east-1",
},
language: "ja",
envName: "Development",
modelId: "anthropic.claude-3-sonnet-20240229-v1:0",
slackAppTokenKey: "SlackAppToken",
slackSigningSecretKey: "SlackSigningSecret",
architectureDescription: "あなたが担当するワークロードは、CloudFront、ALB、ECS on EC2、DynamoDBで構成されており、ECS on EC2上にSpringアプリケーションがデプロイされています。",
cwLogsLogGroups: [
"EcsAppApiLogGroupXXXXXXXX-xxxxxxxxxxxx",
"/aws/ecs/containerinsights/EcsAppClusterXXXXXXXX-xxxxxxxxxxxx/performance",
],
// It's just sample query. Please you optimize to your situation.
cwLogsInsightQuery: "fields @message | limit 100",
databaseName: "athenadatacatalog1111111",
albAccessLogTableName: "alb_access_logs",
cloudTrailLogTableName: "cloud_trail_logs",
xrayTrace: true,
slashCommands: {
insight: false,
findingsReport: false,
},
detectorId: "ccc7636809ab9ef126976785ad0df79e"
};