Closed eddykaya closed 1 week ago
Can you confirm the same provider works for other postgresql_*
resources as well?
If not a secret, what is the output terraform state show azurerm_private_endpoint.postgres_private_endpoint.private_service_connection[0]
?
We are using postgresql_extension
without any problem as long the provider is configured ok.
Hi @eddykaya
I close this issue for now but feel free to reopen it and to answer @nejec question so we can help you.
Most probably azurerm_private_endpoint.postgres_private_endpoint.private_service_connection[0].private_ip_address
is empty or not yet resolved so the host is set to the default value.
Hi there,
Thank you for opening an issue. Please provide the following information:
Terraform Version
1.8.4
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
I don't know which part of the DEBUG output is relevant, there is a lot of sensitive information, please specify which part of the debug output you need.
Expected Behavior
The postgres extension gets created
Actual Behavior
THe postgres extension could not be created as the provider tries to connect to 127.0.0.1 instead of the ip address set in the provider settings. This is definetly the correct IP as I am able to create schemas and roles:
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
Using azure postgres flexible server
References