File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
aws-genai-llm-chatbot/modules/chatbot Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ deploy:
6
6
- npx @aws-amplify/cli codegen add --yes
7
7
build :
8
8
commands :
9
+ - mkdir -p /root/.cdk/cache
9
10
- env | grep NEXUS | sort | awk -F= '{printf "%-30s = %s\n", $1, $2}'
10
11
- npm run tsc
11
12
- npm run config -- --non-interactive --env-prefix NEXUS_PARAMETER_
12
- - npm run deploy -- --require-approval never --progress events --outputs-file ./cdk-exports.json -v
13
+ - npm run deploy -- --require-approval never --progress events --outputs-file ./cdk-exports.json -v --no-notices
13
14
- cat cdk-exports.json
14
15
- seedfarmer metadata convert -f cdk-exports.json -jq .${NEXUS_PARAMETER_PREFIX}GenAIChatBotStack.metadata || true
15
16
destroy :
Original file line number Diff line number Diff line change @@ -97,15 +97,18 @@ export class Monitoring extends Construct {
97
97
] )
98
98
)
99
99
) ;
100
- monitoring . addSegment (
101
- new SingleWidgetDashboardSegment (
102
- this . getLogsWidget (
103
- "LLM Request Handlers Logs:" ,
104
- props . llmRequestHandlersLogGroups ,
105
- [ ]
100
+ // Only add LLM Request Handlers Logs widget if there are log groups
101
+ if ( props . llmRequestHandlersLogGroups . length > 0 ) {
102
+ monitoring . addSegment (
103
+ new SingleWidgetDashboardSegment (
104
+ this . getLogsWidget (
105
+ "LLM Request Handlers Logs:" ,
106
+ props . llmRequestHandlersLogGroups ,
107
+ [ ]
108
+ )
106
109
)
107
- )
108
- ) ;
110
+ ) ;
111
+ }
109
112
110
113
if ( props . advancedMonitoring ) {
111
114
this . addMetricFilter (
You can’t perform that action at this time.
0 commit comments