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.

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
전문가
답변함 일 년 전
  • 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
답변함 일 년 전
  • 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…

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠