简体   繁体   中英

AWS Athena - Connect from Lambda

connecting/Running query in an aws athena via lambda function is working fine , but when i connect using lambda with vpc, it gives timeout error. please suggest a solution to resolve this

Since your function is "in" a VPC, there are two options to enable access to Athena:

  • Place your function in private su.net (public will not work), and setup NAT gateway in a public su.net with correct route tables. This way, your function will connect to Athena using NAT and subsequently, the inte.net.
  • Create a VPC interface endpoint for Athena in your VPC. This does not require inte.net access, nor NAT. Subsequently you can privately connect to Athena without leaving AWS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM