运行迁移时 AWS Beanstalk RDS 错误

问题描述 投票:0回答:1

我是 AWS Elastic Beanstalk 的新手。我可以连接到数据库。但是,当我尝试运行数据库迁移以在 AWS RDS 中创建表时。我不断收到此错误:

ERROR: no pg_hba.conf entry for host "xx.xx.xxx.xx", user "postgres", database "postgres", no encryption

我将 Node js 与 PostgreSQL 结合使用。我通过在

pg_hba.conf
文件中进行更改来进行在线发现的更改。我还添加了
listen_addresses = '*'

这可能是 VPC/安全组的 AWS RDS 问题还是我遗漏的问题?

我想要运行迁移

node.js postgresql amazon-web-services amazon-elastic-beanstalk amazon-rds
1个回答
0
投票

更新:修复了该问题,问题出在不允许运行迁移的入站连接中。

© www.soinside.com 2019 - 2024. All rights reserved.