无法将数据源解析为 AWS 中的 IP 地址
Could not resolve Datasource to an IP address in AWS
我已经创建了 AWS lambda 函数并部署在 AWS 中。从 AWS 连接位于本地的 Teradata 数据库服务器时出现 "Could not resolve Datasource to an IP address" 错误。如何解决下面提到的错误?
编辑:
我们已经通过在连接 Teradata 数据库时在 DataSource 中使用 IP 地址而不是数据库实例来纠正 "Could not resolve Datasource to an IP address" 错误。但是当我尝试通过数据库实例连接 Teradata 数据库时,即 DataSource 中的 xxx0,我现在收到 "Cannot created connection within the time specified" 错误。
错误消息“无法将数据源解析为 IP 地址”表明无法将 DNS 名称解析为 IP 地址。
鉴于您正在连接到私有数据源,DNS 名称可能只能通过组织网络内的 DNS 服务器在内部解析。
这可以通过 DNS 解析器 完成。来自 Resolving DNS Queries Between VPCs and Your Network - Amazon Route 53:
When you create a VPC using Amazon VPC, you automatically get DNS resolution within the VPC from Route 53 Resolver... You can also configure DNS resolution between your VPC and your network over a Direct Connect or VPN connection.
You can configure Resolver to forward queries that it receives from EC2 instances in your VPCs to DNS resolvers on your network. To forward selected queries, you create Resolver rules that specify the domain names for the DNS queries that you want to forward (such as example.com), and the IP addresses of the DNS resolvers on your network that you want to forward the queries to.
我已经创建了 AWS lambda 函数并部署在 AWS 中。从 AWS 连接位于本地的 Teradata 数据库服务器时出现 "Could not resolve Datasource to an IP address" 错误。如何解决下面提到的错误?
编辑: 我们已经通过在连接 Teradata 数据库时在 DataSource 中使用 IP 地址而不是数据库实例来纠正 "Could not resolve Datasource to an IP address" 错误。但是当我尝试通过数据库实例连接 Teradata 数据库时,即 DataSource 中的 xxx0,我现在收到 "Cannot created connection within the time specified" 错误。
错误消息“无法将数据源解析为 IP 地址”表明无法将 DNS 名称解析为 IP 地址。
鉴于您正在连接到私有数据源,DNS 名称可能只能通过组织网络内的 DNS 服务器在内部解析。
这可以通过 DNS 解析器 完成。来自 Resolving DNS Queries Between VPCs and Your Network - Amazon Route 53:
When you create a VPC using Amazon VPC, you automatically get DNS resolution within the VPC from Route 53 Resolver... You can also configure DNS resolution between your VPC and your network over a Direct Connect or VPN connection.
You can configure Resolver to forward queries that it receives from EC2 instances in your VPCs to DNS resolvers on your network. To forward selected queries, you create Resolver rules that specify the domain names for the DNS queries that you want to forward (such as example.com), and the IP addresses of the DNS resolvers on your network that you want to forward the queries to.