Skip to content

Add rule_custom_name variable to PSC endpoints bare targets#110

Open
crrlcx wants to merge 2 commits intoGoogleCloudPlatform:mainfrom
crrlcx:main
Open

Add rule_custom_name variable to PSC endpoints bare targets#110
crrlcx wants to merge 2 commits intoGoogleCloudPlatform:mainfrom
crrlcx:main

Conversation

@crrlcx
Copy link
Copy Markdown

@crrlcx crrlcx commented Dec 15, 2025

This pull request updates the naming convention for Private Service Connect (PSC) resources in the psc_forwarding_rule Terraform module. The main change is to allow more flexible and descriptive custom names for PSC compute addresses and forwarding rules by introducing a new optional variable, rule_custom_name, which defaults to "custom".

Naming improvements for PSC resources:

  • Added a new optional variable rule_custom_name to the psc_endpoints variable definition, allowing users to specify a custom name base for PSC resources.
  • Updated the google_compute_address.psc_address and google_compute_forwarding_rule.psc_forwarding_rule resources to use rule_custom_name (with the index as a suffix) instead of a hardcoded "custom" base when neither a CloudSQL nor AlloyDB instance name is present. [1] [2]

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Dec 15, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant