Easy bash script for install Squid proxy on AWS EC2 instance, can put this script on the userdata and the instance run and install automaticaly the script.
#!/bin/bash
sudo apt update -y
sudo apt install tinyproxy -y
echo "Allow <YOUR_LOCAL_IP>" >> /etc/tinyproxy/tinyproxy.conf
sudo /etc/init.d/tinyproxy restart