1 Answer
- Newest
- Most votes
- Most comments
0
Lambda functions by default run in the Lambda service VPC and as such do not have an IP that you can use. If you need al your requests from Lambda to come from a specific IP, you must attach the function to a VPC and use a NAT Gateway with an EIP in that VPC to route the traffic to the internet. If you need it to access a local resource in the VPC, you can use the IP address allocated to the ENIs that are attached to the VPC for the Lambda usage.
Thank you. I would need the requests from the Lambda function to come from a specific IP. Would you be able to point me to instructions on how to set this up please?
You can find detailed instructions here.
thank you mate
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
Is your lambda function in a VPC?
Yes, in the default project VPC - not a custom VPC.