title: How to create n proxies with AWS
body: <p>I am looking to create many HTTP proxies. I think AWS EC2 might be a good idea? I was thinking that perhaps I could create an EC2 (Ubuntu Server 18.04) t3.nano instance for each proxy that I want. Then, I follow a guide such as <a href="https://www.tecmint.com/install-squid-in-ubuntu/" rel="nofollow noreferrer">https://www.tecmint.com/install-squid-in-ubuntu/</a>, I do that for each instance. However, I'm not sure if that guide is the best way to do it, and I would like to setup usernames and passwords for each proxy and I don't think that shows how to do that.</p>
  
  <p>I would like to use probably up to 500 proxies at a time, so obviously I will need to create a script to generate the EC2 instances, then another script to set them all up to be proxies. Then finally a script that will output a list of IP:Port:Username:Proxy into a text file.</p>
  
  <p>I have installed <code>aws-shell</code> which I think is what I need to use to launch the instances. I think to create one I should use something like this</p>
  
  <pre><code>aws ec2 run-instances --image-id ami-xxxxxxxx --count 1 --instance-type t3.nano --key-name MyKeyPair --security-group-ids sg-903004f8 --subnet-id subnet-6e7f829e
  </code></pre>
  
  <p>But I don't understand the information it is asking me for, such as ami, sg-xxx and subnet. I assume I should replace the 1 after count with how many I want to make.</p>
  
  <p>And then how would I run the script to set them all to be proxy servers? And output the proxy data?</p>
  
  <p>Sorry if this question is a bit confusing, it's just that I am quite confused and would really appreciate some guidance.</p>
  
  <p>By the way, I picked t3.nano because they have high network speeds but low memory.</p>
  
  <p>I just assumed AWS would be the best way, but is there a better way to do this?</p>