Can I change my AWS Lambda's public IP on every request?

前端 未结 2 1063
囚心锁ツ
囚心锁ツ 2021-02-05 18:08

I would love to get a new public IP every time I make a request. Is it possible to purposefully trigger my IP to be reprovisioned?

2条回答
  •  南笙
    南笙 (楼主)
    2021-02-05 18:51

    From the AWS lambda developer guide: “By default, Lambda runs your functions in a secure VPC with access to AWS services and the internet. The VPC is owned by Lambda and does not connect to your account's default VPC.” I use the NAT gateway method only when I need a static IP for whitelisting access on a firewall for example.

提交回复
热议问题