【发布时间】:2020-05-02 05:07:13
【问题描述】:
我正在尝试使用 Cloud Functions 配置 Google Cloud Endpoints。同样,我遵循以下指示:https://cloud.google.com/endpoints/docs/openapi/get-started-cloud-functions
我已按照给出的步骤进行操作,并将服务配置构建到新的 ESPv2 Beta docker 映像中。当我下达命令时:
chmod +x gcloud_build_image
./gcloud_build_image -s CLOUD_RUN_HOSTNAME \
-c CONFIG_ID -p ESP_PROJECT_ID
替换主机名和 configid 和 projectid 后出现以下错误
> -c service-host-name-xxx -p project-id
Using base image: gcr.io/endpoints-release/endpoints-runtime-serverless:2
++ mktemp -d /tmp/docker.XXXX
+ cd /tmp/docker.5l3t
+ gcloud endpoints configs describe service-host-name-xxx.run.app --project=project-id --service=service-host-name-xxx.app --format=json
ERROR: (gcloud.endpoints.configs.describe) NOT_FOUND: Service configuration 'services/service-host-name-xxx.run.app/configs/service-host-name-xxx' not found.
+ error_exit 'Failed to download service config'
+ echo './gcloud_build_image: line 46: Failed to download service config (exit 1)'
./gcloud_build_image: line 46: Failed to download service config (exit 1)
+ exit 1
知道我做错了什么吗?谢谢
【问题讨论】: