First of all, this is not an unreasonable request, do not refuel. AWS Lambdas already supports this feature and has been working for some time. If you are interested in this feature, check its request: https://issuetracker.google.com/issues/112629904
Secondly, we came to a solution that I also posted in this issue, perhaps this will work for you too:
- Configure VPC Connector
- Create Cloud NAT on VPC
- Create a proxy host that does not have a public IP address, so output traffic is routed through Cloud NAT
- Configure a cloud feature that uses the VPC Connector and that is configured to use a proxy server for all outgoing traffic
The caveat to this approach: - We wanted to put the proxy server in the managed instance group and behind the internal GCP LB so that it scales dynamically, but GCP support has confirmed that this is not possible because ILB GCP basically whitelists the subnet and the cloud CIDR function is outside this subnet
I hope this is helpful.
Update: just the other day they announced an early access beta for this exact feature !!
"Cloud Functions PM is here. We actually have a preview of this feature if you want to test it.
Please fill out this form so we can add you ... "
The form can be found in the release linked above.
source share