provider "postgresql" {
host = var.postgresql_user_server_fqdn
port = 5432
username = var.administrator_login
password = var.administrator_password
sslmode = "require"
superuser = false
alias = "create_user"
}
I am using this provider block to connect to postgresql every time. It give the mentioned error occasionally at different interval and goes away automatically. Please help.
Unable to connect with Azure postgres with Terraform

Nitin Naidu (Consultant)
21
Reputation points
Getting below error while trying to connect to postgres with terraform. pls help.
Error: error detecting capabilities: error PostgreSQL version: dial tcp XX.XXX.XXX.XXX:5432: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
{count} votes
1 answer
Sort by: Most helpful
-
Nitin Naidu (Consultant) 21 Reputation points
2023-03-29T07:15:28.95+00:00
@Nitin Naidu (Consultant) We haven't heard back from you. Just wanted to check if you had the chance to check my response
Regards
Geetha