Is there a way to assign a Static IP to a AWS Lambda without VPC?

后端 未结 4 675
说谎
说谎 2021-02-08 14:42

I am looking to assign a static IP to my Lambda which is being invoked via the API gateway. This is required because, the downstream system that i invoke from this lambda accept

4条回答
  •  抹茶落季
    2021-02-08 15:34

    You can't assign a public/static IP to any Lambda function.

    Your only good option is to deploy into a VPC with an Internet Gateway and configure routing from the Lambda's subnet through a NAT which has an Elastic IP. Then your target host can whitelist the Elastic IP.

    Also see:

    • Public IP address for AWS API Gateway & Lambda (no VPC) - Stack Overflow
    • AWS Lambda functions with a static IP – Matthew Leak – Medium

提交回复
热议问题