aws-samples / aws-genai-llm-chatbot

A modular and comprehensive solution to deploy a Multi-LLM and Multi-RAG powered chatbot (Amazon Bedrock, Anthropic, HuggingFace, OpenAI, Meta, AI21, Cohere, Mistral) using AWS CDK on AWS
https://aws-samples.github.io/aws-genai-llm-chatbot/
MIT No Attribution
1.11k stars 332 forks source link

Lambda was unable to configure your environment variables because the environment variables you have provided exceeded the 4KB limit. #583

Open jarrettyeo opened 1 month ago

jarrettyeo commented 1 month ago
12:46:25 AM | UPDATE_FAILED        | AWS::Lambda::Function                       | ChatBotApiRestApiG...ApiHandler140797C1
1 validation error detected: Value 'Lambda was unable to configure your environment variables because the environment variables you have provided exceeded the 4KB limit.

After the commit of 05f2b75611318d7978e781f19d2cd9badde08dae https://github.com/aws-samples/aws-genai-llm-chatbot/pull/578, I started to encounter this error when I deploy CDK

jarrettyeo commented 1 month ago

Might need to start using Parameter Store to store and access these env vars

jarrettyeo commented 1 month ago

Likely related to https://github.com/aws-samples/aws-genai-llm-chatbot/commit/05f2b75611318d7978e781f19d2cd9badde08dae#diff-07e07c5729f4979449d5393179aafa12da09ae153006a131d371faa58d674a60R79 @charles-marion

charles-marion commented 1 month ago

Hi @jarrettyeo , thank you for noticing the issue. Please use the previous commit if you are blocked. I will look into it.