aws-genai-llm-chatbot icon indicating copy to clipboard operation
aws-genai-llm-chatbot copied to clipboard

CREATE_FAILED during npx cdk deploy

Open GiuseppeSergi3 opened this issue 1 year ago • 1 comments

Hello everyone, after running the 'npx cdk deploy' command, I'm encountering the following errors that lead to deployment failure: errore

I'm trying to deploy the chatbot (via Cloud9 environment) in the Paris region. Does anyone know how to resolve this?

Thank you, Giuseppe

GiuseppeSergi3 avatar May 09 '24 13:05 GiuseppeSergi3

Same thing is happening to me. Any ideas on how to solve?

kzaini avatar May 09 '24 13:05 kzaini

What region are you deploying to? I suspect different regions with different instance types available and M6A isnt available in your region.

the code where that is set is here: https://github.com/aws-samples/aws-genai-llm-chatbot/blob/main/lib/rag-engines/data-import/file-import-batch-job.ts#L41 https://github.com/aws-samples/aws-genai-llm-chatbot/blob/main/lib/rag-engines/data-import/web-crawler-batch-job.ts#L41

you can see instance types by region here: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-regions.html

Pick a different one thats available in your region and then build and deploy the changes again.

Rob-Powell avatar May 13 '24 08:05 Rob-Powell

I'm deploying in Paris. I've noticed that indeed M6A isn't available, but I need to deploy in this region to use the multimodal models. Is there a solution?

GiuseppeSergi3 avatar May 13 '24 08:05 GiuseppeSergi3

yep, Ok looks like paris supports m5a as a workaround modify those files i mentioned:

https://github.com/aws-samples/aws-genai-llm-chatbot/blob/main/lib/rag-engines/data-import/file-import-batch-job.ts#L41 https://github.com/aws-samples/aws-genai-llm-chatbot/blob/main/lib/rag-engines/data-import/web-crawler-batch-job.ts#L41

replace M6A with M5A and try another deployment after running npm run build then deploy as normal with npx cdk deploy

Rob-Powell avatar May 13 '24 08:05 Rob-Powell

It worked! Thank you so much for the help.

GiuseppeSergi3 avatar May 13 '24 09:05 GiuseppeSergi3