How to import Streamlit secrets to AWS ec4?

I was able to upload my app made with streamlit to AWS ec4 recently but I had an API key that I need to access in the python script. In Streamlit Community Cloud I stored it in the secrets section. Would any of you know how to handle these secrets in AWS ec4?

Any info shall be appreciated. Thanks!

Hey @mansidak,

Have you checked out AWS Secrets Manager?

1 Like

The AWS docs have multiple helpful guides as well:

1 Like