Skip to content

could not start transaction: dial tcp : connect: connection timed out #175

@Manoj-07

Description

@Manoj-07

Hi there,

Thank you for opening an issue. Please provide the following information:

Terraform Version-1.0.11

##provider version

postgresql = {
      source  = "cyrilgdn/postgresql"
      version = "1.12.0"
 } 
 
provider "postgresql" {
  host             = aws_db_instance.test_db.address
  port             = aws_db_instance.test_db.port
  username         = aws_db_instance.test_db.username
  password         = var.postgres_password
  expected_version = aws_db_instance.test_db.engine_version
  sslmode          = "require"
}

My aws_db_instance is created using a private subnet and it is not publicly_accessible.
while I am trying to create the following by using the above provider version I am getting timeout error
resource "postgresql_database" "dev_db" {
}
could anyone please let me know how to resolve it?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions