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:

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager.html#SecretsManager.Client.get_secret_value

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.