Default Lambda VPC - DNS Resolving fails for dynamodb.us-east-1.amazonaws.com

0

Hey,

In the last 24 hours we see some of our lambda's that interact with DynamoDB fail due to DNS resolving error:

{"errno":-3008,"code":"ENOTFOUND","syscall":"getaddrinfo","hostname":"dynamodb.us-east-1.amazonaws.com","$metadata":{"attempts":1,"totalRetryDelay":0}}

Did somebody encounter this issue or have any leads? it doesn't seem to be a DNS throttling as the invocation count of this lambda during the time when the error occurred was very low.

Guy
已提问 1 年前340 查看次数
2 回答
0

It's not clear from the question but: Is the Lambda running in the context of a VPC? If so, are you using the VPC Route 53 DNS resolver?

If the answer to the second question is "yes" I'd suggest creating a support ticket because there is some other issue there that isn't obvious.

If you're using your own DNS resolver within the VPC then I would check the logs on that and see if it is experiencing any issues.

If the answer to the first question is "no" then I'd also suggest creating a support ticket.

profile pictureAWS
专家
已回答 1 年前
  • Hey, thanks for your response! The lambda is running under the default VPC (the one that is created with each AWS Account) that allows internet access etc, no custom DNS resolver is running under this VPC.

  • The default VPC generally has public subnets only; if you launch a Lambda function into a public subnet it does not get a public/elastic IP. In order to allow the Lambda function to communicate with public resources you will need to create private subnets, a NAT Gateway and use those private subnets for Lambda.

0

Hi there! My hunch is your facing some sort of DNS quota issue since its intermittent. Have you looked at this troubleshooting guide? https://aws.amazon.com/premiumsupport/knowledge-center/vpc-find-cause-of-failed-dns-queries/

profile pictureAWS
已回答 1 年前
  • That what I found online as well but it doesn’t make sense as those failing dns queries are not during peak lambda executions. So weird…

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则