Create a cheap http-proxy on GCP with terraform ( tutorial )

Create a VM with centOS 8

The script is almost identical to the VM+Docker.

  1. First we need to declare the provider, in our case the “google
Get project id from “Select a Project” window
Provide the project ID and the region for the Google Cloud Compute Virtual Machine

Add installation commands to the file


You now have a proxy server ready on PORT 3128


Sometimes the squid is not being installed on the VM, this looks like an terraform issue, to overcome this unpleasant experience please SSH into the machine, paste the entire script to install it manually. Here is the GitHub Repository in case you need it or you want to create a pull-request.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store