为 GCP App Engine 服务添加标签

Zam*_*ues 4 google-app-engine google-cloud-platform terraform

任何使用App Engine labels命令gcloud或至少来自GCP console. label我正在尝试为已部署的应用程序添加

无法看到任何使用命令更新App Engine Service标签参数的选项gcloud

 $ gcloud app instances
 ERROR: (gcloud.app.instances) Command name argument expected.

 Available commands for gcloud app instances:

  delete                  Delete a specified instance.
  describe                Display all data about an existing instance.
  disable-debug           Disable debug mode for an instance.
  enable-debug            Enable debug mode for an instance (only works on
                          the flexible environment).
  list                    List the instances affiliated with the current App
                          Engine project.
  scp                     SCP from or to the VM of an App Engine Flexible
                          instance.
  ssh                     SSH into the VM of an App Engine Flexible
                          instance.
Run Code Online (Sandbox Code Playgroud)

还有管理选项吗terraform?。

找不到任何attributes管理labels任何东西

 https://www.terraform.io/docs/providers/google/r/app_engine_standard_app_version.html
 https://www.terraform.io/docs/providers/google/r/app_engine_application.html
Run Code Online (Sandbox Code Playgroud)

小智 7

尽管我找不到通过 gcloud CLI 执行此操作的方法,但您可以通过控制台 UI 通过以下步骤为 App Engine 资源设置标签:

  1. 转至 App Engine 服务页面。
  2. 选中要添加标签的服务的复选框。
  3. 在页面右上角,单击“显示信息面板”,然后单击标签。

此过程记录在此处

此外,请随时在Google 的问题跟踪器中提出功能请求,要求在 gcloud CLI 中添加标签选项。