-
Notifications
You must be signed in to change notification settings - Fork 918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add name overrides for Internal and External Load Balancers #2420
Add name overrides for Internal and External Load Balancers #2420
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
It's probably easier if you run checks locally without waiting for the workflow to kick in. Details are in the contributing guide in the root of the repo. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that to be fully comprehensive, this requires allowing additional overrides in net-lb-ext
for names of:
- google_compute_region_backend_service
- google_compute_service_attachment
If "fully comprehensive" is the goal, this could be expanded to adding override names across multiple other modules. This would also partially resolve #2419. We have encountered this across many areas of our deployment in taking existing click-ops configured infrastructure under control of Terraform but trying to use CFF to accelerate development. Overrides would be useful for many brownfield deployments. |
…hub24/cloud-foundation-fabric into cvanwijck-hub24/override_name
This PR is getting messy. I extracted the changes to the peering module to #2459. |
@cvanwijck-hub24, just checking in to see if you plan on finishing this PR. If not, we'll go ahead and close it |
Yes I will resolve the outstanding issues this week if possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All use coalesce and changed override_name
to use just name
for clarity
…hub24/cloud-foundation-fabric into cvanwijck-hub24/override_name
…er, tunnel and interface names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm now. Thanks for your patience @cvanwijck-hub24
When developing IaC for existing infrastructure and attempting to achieve parity between the two, the current naming assignments of multiple modules in CFF causes issues.
For example in
net-lb-ext
the name of the load balancer added additional items to the name if aforwarding_rules_config
was passed.This can cause issues where a specific name is preferred, such as when bringing existing infrastructure under the control of IaC. Changing the name of a load balancer, backend service or health check would cause them to be replaced by Terraform.
This is also relevant to #2419 where peerings have a name set by combining the local and peering network names with a prefix. A similar
override_name
variable would resolve this issue.Adding an optional
override_name
variable allows the user to specify a name if the generated name is not helpful for their use case. For users who would like to use the module as before and have names generated as before, leaving theoverride_name
asnull
will use the default name assignment.Checklist
I acknowledge that I have:
terraform fmt
on all modified filestools/tfdoc.py