first login to the AWS: https://aws.amazon.com/console/
search about the EC2
you need to config the UBUNTU Machine
launch the instance
update the machine:
sudo apt update
sudo apt-get update
sudo apt upgrade -y
sudo apt install git curl unzip tar make sudo vim wget -y
git clone "Your-repository"
sudo apt install python3-pip
pip3 install -r requirements.txt
python3 -m streamlit run StreamlitAPP.py
vi .env
go with security and add the inbound rule add the port 8501