You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get rid of Sagemaker and replace it by Bedrock (non-serverless vs serverless optimization).
Is it possible at all ?
Simple change
sed -i 's|"provider": "sagemaker"|"provider": "bedrock"|' bin/config.json
does NOT do the job.
In this case I have an error message during deployment:
(!) Some chunks are larger than 500 kBs after minification. Consider:
Using dynamic import() to code-split the application
Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
dist/assets/index-86466b77.js 2,091.61 kB │ gzip: 579.32 kB
✓ built in 26.55s
/home/ubuntu/environment/aws-genai-llm-chatbot/node_modules/cdk-nag/src/nag-suppressions.ts:98
pathArray.forEach((p) => {
^
Error: Suppression path "/genaiGenAIChatBotStack/RagEngines/SageMaker/Model/MultiAB24A/CodeBuildRole/DefaultPolicy/Resource" did not match any resource.
This can occur when a resource does not exist or if a suppression is applied before a resource is created.
at /home/ubuntu/environment/aws-genai-llm-chatbot/node_modules/cdk-nag/src/nag-suppressions.ts:115:15
at Array.forEach ()
at Function.addResourceSuppressionsByPath (/home/ubuntu/environment/aws-genai-llm-chatbot/node_modules/cdk-nag/src/nag-suppressions.ts:98:15)
at new AwsGenAILLMChatbotStack (/home/ubuntu/environment/aws-genai-llm-chatbot/lib/aws-genai-llm-chatbot-stack.ts:273:25)
at Object. (/home/ubuntu/environment/aws-genai-llm-chatbot/bin/aws-genai-llm-chatbot.ts:13:1)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module.m._compile (/home/ubuntu/environment/aws-genai-llm-chatbot/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Object.require.extensions. [as .ts] (/home/ubuntu/environment/aws-genai-llm-chatbot/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1206:32)
[11:35:39] failed command: npx ts-node --prefer-ts-exts bin/aws-genai-llm-chatbot.ts
[11:35:39] Notices refreshed
Subprocess exited with error 1
[11:35:39] Error: Subprocess exited with error 1
at ChildProcess. (/home/ubuntu/environment/aws-genai-llm-chatbot/node_modules/aws-cdk/lib/index.js:430:50676)
at ChildProcess.emit (node:events:518:28)
at ChildProcess.emit (node:domain:488:12)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
best regards
Alexey Shishkin
The text was updated successfully, but these errors were encountered:
Dear all,
I'm trying to get rid of Sagemaker and replace it by Bedrock (non-serverless vs serverless optimization).
Is it possible at all ?
Simple change
sed -i 's|"provider": "sagemaker"|"provider": "bedrock"|' bin/config.json
does NOT do the job.
In this case I have an error message during deployment:
(!) Some chunks are larger than 500 kBs after minification. Consider:
dist/assets/index-86466b77.js 2,091.61 kB │ gzip: 579.32 kB
✓ built in 26.55s
/home/ubuntu/environment/aws-genai-llm-chatbot/node_modules/cdk-nag/src/nag-suppressions.ts:98
pathArray.forEach((p) => {
^
Error: Suppression path "/genaiGenAIChatBotStack/RagEngines/SageMaker/Model/MultiAB24A/CodeBuildRole/DefaultPolicy/Resource" did not match any resource.
This can occur when a resource does not exist or if a suppression is applied before a resource is created.
at /home/ubuntu/environment/aws-genai-llm-chatbot/node_modules/cdk-nag/src/nag-suppressions.ts:115:15
at Array.forEach ()
at Function.addResourceSuppressionsByPath (/home/ubuntu/environment/aws-genai-llm-chatbot/node_modules/cdk-nag/src/nag-suppressions.ts:98:15)
at new AwsGenAILLMChatbotStack (/home/ubuntu/environment/aws-genai-llm-chatbot/lib/aws-genai-llm-chatbot-stack.ts:273:25)
at Object. (/home/ubuntu/environment/aws-genai-llm-chatbot/bin/aws-genai-llm-chatbot.ts:13:1)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module.m._compile (/home/ubuntu/environment/aws-genai-llm-chatbot/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Object.require.extensions. [as .ts] (/home/ubuntu/environment/aws-genai-llm-chatbot/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1206:32)
[11:35:39] failed command: npx ts-node --prefer-ts-exts bin/aws-genai-llm-chatbot.ts
[11:35:39] Notices refreshed
Subprocess exited with error 1
[11:35:39] Error: Subprocess exited with error 1
at ChildProcess. (/home/ubuntu/environment/aws-genai-llm-chatbot/node_modules/aws-cdk/lib/index.js:430:50676)
at ChildProcess.emit (node:events:518:28)
at ChildProcess.emit (node:domain:488:12)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
best regards
Alexey Shishkin
The text was updated successfully, but these errors were encountered: