Challenges with Deploying Streamlit Apps on AWS Elastic Beanstalk

Hello

I am facing some issues while trying to deploy my Streamlit app on AWS Elastic Beanstalk. The app works perfectly in my local environment but once deployed; I face challenges such as connection errors, environment variable misconfigurations & difficulty in setting up the requirements.txt file correctly for the environment. :upside_down_face:

I have tried tweaking configurations based on several guides but the app either crashes on start / shows a generic error page.

One specific issue seems to revolve around the correct version of Python & compatibility with the streamlit library. Even after specifying the Python version and updating my packages; I still face compatibility warnings. Additionally; I am unsure how to correctly set up the Elastic Beanstalk environment to handle Streamlit’s web server properly; especially with custom ports. :innocent:

If anyone has successfully deployed a Streamlit app on AWS Elastic Beanstalk, I would love to know your approach, including how you handled environment variables, server port configurations & ensuring dependencies are resolved without errors. :upside_down_face:
I have checked HOWTO: Deploying Streamlit app to AWS Elastic Beanstalk (no containers) Java guide for reference .

Any examples, tutorials and step-by-step instructions would be immensely helpful!

Thank you ! :slightly_smiling_face: