Skip to content

jnahelou/cloud-run-serverless-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Play with cloudrun serverless connector

Architecture

A simple nginx proxy_pass that redirect traffic to internal URLs using Google Cloud Serverless Connector and Cloud DNS

Requirements

Inspired by :

How to deploy

$ export GCP_PROJECT="<set project_id here>"
$ export GCP_REGION="<set GCP region here>"
$ docker build -t gcr.io/$GCP_PROJECT/test_connector:latest .
$ docker push -t gcr.io/$GCP_PROJECT/test_connector:latest
$ gcloud alpha run deploy --vpc-connector=<name of connector> --image=gcr.io/$GCP_PROJECT/test_connector:latest test-connector --platform managed --project $GCP_PROJECT --region $GCP_REGION

How to use it

$ curl -H "Authorization: Bearer $(gcloud auth print-identity-token)" https://test-connector-xxxxxx-ew.a.run.app/crawl/myapp.mydomain.internal/

About

Simple nginx deployment to use serverless connector from cloud run

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published