Terraform Provider for Google Cloud Platform
Mozilla Public License 2.0
2.29k
stars
1.72k
forks
source link
Correct usage of "service_directory_registrations" block in "google_compute_forwarding_rule" with PSC / Private Service Connect? #17965
Open
ppuschmann opened 4 months ago
Question
Hi,
the configuration example for "Forwarding Rule VPC PSC" shows this configuration:
which I would extend with the following block to configure the Service Directory namespace and service name:
Given the PSC-Attachment is configure with the attribute domain
domain = "dev.psc.example.com."
, I'd expect the service to be discoverable as:While provisioning this configuration I get an error message:
If I remove the
service
, I can provision the PSC-Endpoint / Forwarding Rule.Only that my service then is only discoverable via the hostname
producer-service-euw1.dev.psc.example.com
.Where do the single parts come from?
producer-service
is the name of the PSC-Attachment-euw1
comes from the provider somehow (yes, I'm doing this ineurope-west1
)dev.psc.example.com
is the domain I configure in the PSC-AttachmentMy expectation (with a working
service
attribute inservice_directory_registrations
) would have been:my-psc-service.dev.psc.example.com
Questions
service
inservice_directory_registrations
? If "yes": how?port
for the entry in the Service Discovery that was generated by PSC?Provider Version
Terraform provider: google, version 5.26.0