Connect Streamlit to AWS S3
Introduction
This guide explains how to securely access files on AWS S3 from Streamlit Cloud. It uses the s3fs library and Streamlit's secrets management.
Create an S3 bucket and add a file
If you already have a bucket that you want to use, feel free
to skip to the next step.
First, sign up for AWS or log in. Go to the S3 console and create a new bucket:
Navigate to the upload section of your new bucket:
And upload the following CSV file, which contains some example data:
myfile.csv
Create access keys
Go to the AWS console, create access keys as shown below and copy the "Access Key ID" and "Secret Access Key":
Access keys created as a root user have wide-ranging permissions. In order to make your AWS account
more secure, you should consider creating an IAM account with restricted permissions and using its
