mt7180 / quaigle

RAG-based LLM application: project to explore different llm-frameworks like llamaindex, marvin and langchain, other used frameworks: streamlit, fastapi
1 stars 1 forks source link

Deploy FastAPI backend to AWS using Pulumi #47

Closed Zaubeerer closed 1 year ago

Zaubeerer commented 1 year ago
          @mt7180, wow, congratulations!

I would say that you have successfully tested fly, but it may not be the right tool for this job.

So my suggestion is that I give you an intro to pulumi and we set up the backend in AWS with an EC2 instance.

Like such, we can get some beefy machines to run the backend. We can even set it up with prefect such that the EC2 instance gets automatically started and stopped to save money ;-)

Would you like to explore that right now or first tackle the second app and come back to this later

Originally posted by @Zaubeerer in https://github.com/mt7180/quaigle/issues/45#issuecomment-1771508823

Zaubeerer commented 1 year ago

Hey @mt7180, let's directly discuss here :)

Pulumi is a framework to manage infrastructure with code (Infrastructure as Code = IaC).

So, instead of manually clicking through the AWS user interface or creating infrastructure via the AWS CLI, you defined infrastructure with Python code 😎

Therefore, we again

mt7180 commented 1 year ago

I started to watch the video(s) about pulumi from the code clinic, but what I didn't get so far is:

Probably I should finish watching the videos first ...

Zaubeerer commented 1 year ago

Those are great questions! Feel free to ask further ones, let me know when you have watched the videos and still have open questions.

For example, mark the questions with a checkbox, so I know which ones are still open ;-)

mt7180 commented 1 year ago

@Zaubeerer : I still didn't finish the second video, since I have too much questions to go forward and I rewatched several parts of the videos again and again ...

I will try to write some questions down, you could probably help me with:

I think if you could help me with these questions, I could go some steps further on my own ...

Zaubeerer commented 1 year ago

Let's quickly meet today, as your questions are already pretty sophisticated 👌

mt7180 commented 1 year ago