规划用于 GCP 的外部函数¶
本主题可帮助您准备使用 Google Cloud Console 用户界面,为 GCP (Google Cloud Platform) 创建外部函数。
先决条件¶
以下说明假设您是经验丰富的 Google Cloud Console 用户。
要为 GCP 创建外部函数,必须具备以下条件:
Google Cloud 项目 ID。
为 Google Cloud 项目启用了正确的服务。有关详细要求,请参阅 快速入门:使用 gcloud 部署 API/API Gateway (https://cloud.google.com/api-gateway/docs/quickstart)。
创建工作表以跟踪所需信息¶
完成在 Google Cloud Console 中创建外部函数的任务时,需要在创建过程的每个步骤中输入特定的值(例如 Cloud Function Trigger URL)。通常情况下,后续步骤中需要您输入的值。
为了便于记录/跟踪这些信息,我们提供了一份工作表,其中对每个必填值都设置了字段:
================================================================================
=================== Tracking Worksehet: Google Cloud Console ===================
================================================================================
****** Step 1: Cloud Function (Remote Service) Info ****************************
Cloud Function Trigger URL: ____________________________________________________
****** Step 2: API Config File Info ********************************************
Path Suffix: ___________________________________________________________________
Configuration File Name: _______________________________________________________
****** Step 2: API Gateway (Proxy Service) Info ********************************
Managed Service Identifier: ____________________________________________________
Gateway Base URL : _____________________________________________________________
****** Steps 3-4: API Integration & External Function Info *********************
API Integration Name: __________________________________________________________
API_GCP_SERVICE_ACCOUNT: _______________________________________________________
External Function Name: ________________________________________________________
****** Step 5: Security Info ***************************************************
Security Definition Name: ______________________________________________________