hsmade / caching-proxy

A simple caching proxy for Terraform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cachingProxy

This software was created out of frustration about the slowness of terraform. As TF does not do any caching at all, it is very, very slow as it keeps re-requesting the same data. This proxy caches everything based on the full URL. This speeds up TF a lot. You should not keep this proxy running for longer than just the duration of a single plan, as it does not delete from its cache.

Example usage:

./cachingProxy &
HTTP_PROXY=localhost:8080 OS_INSECURE=true terraform plan

The OS_INSECURE is needed because this proxy does an MITM trick to intercept the HTTPS traffic, and therefor presents a self-signed cert.

About

A simple caching proxy for Terraform.


Languages

Language:Go 79.0%Language:Makefile 10.7%Language:Dockerfile 10.3%