https://pulumi.com logo
#google-cloud
Title
# google-cloud
a

aloof-leather-66267

01/17/2022, 5:37 AM
How can I put an external load balancer in front of Cloud Run? I see examples for BackendServices, but not serverless NEGs.
p

prehistoric-activity-61023

01/17/2022, 12:10 PM
I haven’t done it yet but I guess I could try to do it as an exercise if I have some free time in the evening.
Do you have some existing code spinning up Cloud Run part?
a

aloof-leather-66267

01/17/2022, 5:06 PM
For that you should be able to use the Cloud Run Service example. https://www.pulumi.com/registry/packages/gcp/api-docs/cloudrun/service/#cloud-run-service-basic
Ok, I think I got it. gcp.compute.GlobalAddress gcp.compute.ManagedSslCertificate gcp.compute.URLMap gcp.compute.TargetHttpsProxy gcp.compute.GlobalForwardingRule Plus DNS to point to the IP.
Now I just need to figure out how to configure the URLMap to send static traffic to a bucket and API traffic to Cloud Run.
p

prehistoric-activity-61023

01/19/2022, 11:28 AM
@aloof-leather-66267 I see you managed to figure it out. Do you still need some help with this? 🙂
a

aloof-leather-66267

01/19/2022, 4:04 PM
Nope, I'm good. Thank you.