If you are building a microservice, you need to find a way to expose it. Suppose you are working with Cloud Functions or with Cloud Run. If you want to expose them using a structured and secure API, you should consider using Cloud API Gateway. Cloud API Gateway is a fully managed, easy-to-use, and secure Google service that allows you to create an API for the workload you need to expose. It offers reduced complexity because it lets you define the API using the Swagger OpenAPI 2.0 standard. Following this standard, you would define the specifics about the method of exposing your workloads, such as the path and the protocol.
In this lab, you will create a Cloud Function, and you will create an API with Cloud API Gateway to expose it.
Upon completion of this lab, you will be able to:
This lab is intended for:
No prerequisites are required.
August 10th, 2023 - Addressed user ban issue and promptly added a warning
April 20th, 2022 - Updated the instructions and screenshots to reflect the latest UI