Can't Connect Elastic Beanstalk to RDS with Flask API

0

I created a basic Flask API and was able to connect it to AWS RDS. Just as a test to make sure it was working, I also made a basic form and was able to send a POST request and update the database.

I start running into issues when I deploy my application using Elastic Beanstalk. I don't want to do anything fancy. I just need a basic configuration and want to drop a zip file into the "Upload and Deploy" feature and let it run. I set the environment's configuration variables (includes database credentials) and still kept running into issues.

The main error I keep seeing in the logs involves mysqlclient. Specifically:

OSError: mysql_config not found

I seem to have all the required files needed for deployment (Procfile, requirements.txt). I'm not sure if I need mysqlclient at all. Do I need to set mysql_config in another location?

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠