Does Lambda@Edge support IPv6 connectivity?

0

I'm trying to find a workaround to the lack of support for IPv6 Origins in CloudFront, as a way to possibly avoid paying for IPv4 addresses. Can a Lambda@Edge function make HTTP(s) calls to EC2 instances that are using IPv6 addresses exclusively?

AlexR
질문됨 2달 전744회 조회
1개 답변
0

A Lambda@Edge function should be able to make HTTP(s) calls to EC2 instances using IPv6 addresses.

  • Ensure the Lambda function is configured to use the latest Node.js runtime version which supports IPv6. Older versions may have issues.
  • When making the HTTP request, specify the IPv6 address as the hostname and set the familyoption to 6 to force IPv6.
 var options = {
   hostname: 'xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx', 
   family: 6,
   //...
 };
  • Make sure any security groups or network ACLs allow the relevant IPv6 traffic to reach the EC2 instance.
  • Consider using an egress-only internet gateway to allow outbound IPv6 traffic from the instances without exposing them directly to the internet.
  • Test connectivity from another IPv6-enabled resource first to verify the EC2 instance configuration before testing from Lambda.
profile picture
전문가
답변함 2달 전
profile picture
전문가
검토됨 2달 전

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

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

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

관련 콘텐츠