Not Connecting to Streamlit Server - AWS Elastic Beanstalk

Working on deploying a small streamlit app on AWS with elastic beanstalk.

App is containerized with Docker. The environment appears to spin up an I can access the app via the public IP. However, the streamlit server does not appear to connect (screenshot below).

Are there any streamlit or aws configs I need to set to ensure successful deployment?


FROM python:3.8-slim

WORKDIR /usr/app/src

COPY requirements.txt requirements.txt

RUN pip install --no-cache-dir -r requirements.txt

COPY app/ ./


CMD [“sh”, “-c”, “streamlit run --browser.serverAddress --server.enableCORS False --server.port 80 --server.enableXsrfProtection False /usr/app/src/” ]

I wonder if the issue here has something to do with needed to enable sticky sessions for the load balancer. Though I don’t know if the specific case of Elastic Beanstalk, I have heard of users having issues using file_uploader with a load balancer, because the frontend doesn’t communicate with the proper backend unless sessions get pinned to the original session.

So maybe look to see if there is a setting for that?

Thanks @randyzwitch.

Will look into “sticky” settings on the load balancer.

Getting the app this far has been a learning experience!

1 Like