1

I need to access some external API from my Firebase cloud function. However, they need me to add my server IP to their IP Whitelist. Do I have the possibility to get the external IP address of a firebase cloud function?

P.S: an IP identification website give me 216.239.36.54 as the address. Is It right?

Yoav Taieb
  • 63
  • 5

1 Answers1

2

Cloud Functions are automatically provisioned and unprovisioned as requests are made to them, so they are not on a fixed IP address. If you wait 15 minutes, you might get a different IP address, and if you get many users they will be served from multiple different IP addresses.

The external API will need to allow access from the entire range of IP addresses that Cloud Functions may use. Alternatively, the documentation suggests that you can associate function egress traffic with a static IP address. Note that this last option seems non-trivial to me from a quick scan of the documentation.

Also see:

John Hanley
  • 74,467
  • 6
  • 95
  • 159
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807