It's never been a goal to reuse the Terraform examples, since they are pretty simplistic and intentionally ignore details that are important for a production grade setup. That being said, they are good for creating a new environment, quickly and without much hassle; so I refactored them here to ensure they can be used as modules, so the code can be used externally, via modules. The end goal is to be able to simply create a new AWS or GCP environment that we know works with Kip (I'd like to use it to set up an image test pipeline).
While testing the configs, I also bumped into an issue caused by 8ae8d723e544e3ee82a8b4d2ef6f22aca0c0ec1e, which broke terraform-vpn, so I also added a fix for that.
It's never been a goal to reuse the Terraform examples, since they are pretty simplistic and intentionally ignore details that are important for a production grade setup. That being said, they are good for creating a new environment, quickly and without much hassle; so I refactored them here to ensure they can be used as modules, so the code can be used externally, via modules. The end goal is to be able to simply create a new AWS or GCP environment that we know works with Kip (I'd like to use it to set up an image test pipeline).
While testing the configs, I also bumped into an issue caused by 8ae8d723e544e3ee82a8b4d2ef6f22aca0c0ec1e, which broke terraform-vpn, so I also added a fix for that.