1 Answer
- Newest
- Most votes
- Most comments
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 thefamily
option to6
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.
Relevant content
- asked a year ago
- asked 5 months ago
- Accepted Answerasked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 4 months ago