Closed gfenn-newbury closed 5 years ago
LGTM, but again we need to update the main.tf
in the root folder to include gcp_project_id
. Then ready to merge!
That should now be done. Also formatted main.tf
with terraform fmt
.
I've now also formatted the main.tf
of vault-cluster
Just added a fairly major change - the specifying the project for the network is now different to specifying the project for the compute instances. This allows for deployments which may use a network shared from a different project. Related to: https://github.com/hashicorp/terraform-google-consul/pull/28
Ok, updates made. I'll merge this now but will hold off on issuing a release until we have automated tests that officially validate these changes.
What this PR does
This MR allows specifying of which project
vault-cluster
will deploy to, by adding a project variable for each vault instance as${var.gcp_project_id}
, as well as a project variable for the network and firewall rules,${var.network_project_id}
.Why this PR is needed
The current method uses the project defined in the 'provider' block. This is good for single-project deployments, but when using
vault-cluster
with other terraform files which need deploying into other projects, there will be no project specified inprovider
. Each terraform object will have it's project specified instread. This PR will make sure thatvault-cluster
has the same ability.