Personal Proxy Server with Terraform on Amazon AWS
June 15, 2020
In this blog post we will be looking at what Infrastructure as Code (IaC) is and how it can be used in a practical exercise: spinning up a proxy server on Amazon AWS with Terraform.
You might want to use a proxy for various reasons. For instance, I currently live in South America and some US companies block traffic or content for me. For example, LendingTree gives me the 1020 error (probably because they don’t consider me a potential customer) or Netflix hides certain movies and shows (probably because of license agreements). A proxy with a US IP address will help.
Infrastructure as Code
The idea behind Infrastructure as Code is that you write code to define, deploy, update and destroy your infrastructure. You can manage pretty much everything in code, including servers, databases, networks, application configuration, etc. The benefits are pretty obvious:
- Faster time to production/market. When your infrastructure is described in code its management becomes easier.
- Consistency. You will be eliminating manual processes.
- Code as Documentation. Your infrastructure is represented in source files allowing anyone in the organization to understand how things work.
- Change Management. Version control systems such as git keeps track of every modification to the code.
- Reusability. You can package your infrastructure in reusable modules.