A complete CDK Automation with DeepSeek R1 Chatbot confined locally inside AWS ECS Fargate container running Ollama that doesn't transmit your data to China!
For more details on how to deploy the infrastructure and solution details, please refer to the Blog Post:
Add a new LLM to your Ollama container by simply running the following curl command:
curl -X POST http://<OLLAMA_LB_DNS>/api/pull -d '{"name": "your-model-name"}'
Replace "your-model-name-here" with any supported LLM (e.g., deepseek-r1:1.5b, mistral:7b)
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template