Skip to content
Justin Digs Data
Justin Digs Data
  • Home
  • Nerd Library
Justin Digs Data
Google API Gateway Logo

API Key Authentication with Google Cloud API Gateway and Cloud Run

Posted on February 10, 2024February 15, 2024 By Justin

Create API Gateway

Now that we have the API Gateway API and an API Gateway Config, we can create the API Gateway itself. Back to good ol’ gcloud:

gcloud api-gateway gateways create {{GATEWAY_ID}} \
  --api={{API_ID}} --api-config={{CONFIG_ID}} \
  --location={{GCP_REGION}} --project={{PROJECT_ID}}

Where:

  • {{GATEWAY_ID}}: Name of the API Gateway we want to create. I like to just use the same name as the API_ID with “-gateway” appended to the end (e.g. demo-api-gateway).
  • {{API_ID}}: The ID of the API Gateway API created in the previous section. (e.g. demo-api).
  • {{CONFIG_ID}}: The ID of the API Gateway API Config we created previously (e.g. demo-api-config).
  • {{GCP_REGION}}: The region where our Cloud Run service was deployed (e.g. us-central1).
  • {{PROJECT_ID}}: Name of the Google Cloud project you’re using for the tutorial (e.g. api-gateway-key-auth-demo)
Pages: 1 2 3 4 5 6 7 8 9 10 11 12
Backend Stuff APICloud RunGCPPythonTutorial

Post navigation

Next post

Categories

  • AI
  • Backend Stuff

Recent Posts

  • An LLM’s Blog Post about Why You Shouldn’t Use LLMs to Write Blog Posts
  • API Key Authentication with Google Cloud API Gateway and Cloud Run

Archives

  • February 2024
©2025 Justin Digs Data | WordPress Theme by SuperbThemes