This PR adds some quick and dirty Terraform templates to manage a private VPC with all the necessary infrastructure in place, like a NAT gateway. This makes it easier to test the work in #296 and any future efforts that impact Flintrock's behavior in private VPCs.
I tried to just manually create this infrastructure and keep it lying around, but it's a bit expensive to keep a NAT gateway running all the time, and destroying/recreating the gateway manually requires updating route tables manually too. So I figured it would be better to just automate the creation of this infrastructure so I can set it up and tear it down as needed.
TODO:
[x] Add brief README for test-infra/.
[x] Wrap terraform destroy so we handle security groups and the like created by Flintrock in the VPC.
[x] Add CI checks for terraform validate and terraform fmt --check.
This PR adds some quick and dirty Terraform templates to manage a private VPC with all the necessary infrastructure in place, like a NAT gateway. This makes it easier to test the work in #296 and any future efforts that impact Flintrock's behavior in private VPCs.
I tried to just manually create this infrastructure and keep it lying around, but it's a bit expensive to keep a NAT gateway running all the time, and destroying/recreating the gateway manually requires updating route tables manually too. So I figured it would be better to just automate the creation of this infrastructure so I can set it up and tear it down as needed.
TODO:
test-infra/
.terraform destroy
so we handle security groups and the like created by Flintrock in the VPC.terraform validate
andterraform fmt --check
.