Search code examples
google-app-enginegoogle-cloud-platformterraform

Adding labels for GCP App Engine Services


Any suggestion to manage App Engine labels using gcloud command or atleast from the GCP console. I am trying to add a label for an already deployed application

Cannot see any option to update App Engine Service label parameters with gcloud command

 $ 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.

Also any option to manage from terraform ? .

Cannot find any attributes to manage labels anything under

 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

Solution

  • Although I couldn't find a way to do it through the gcloud CLI you can set labels to App Engine resources through the Console UI with the following steps:

    1. Go to the App Engine Services page.
    2. Mark the checkbox of the service you want to add labels to.
    3. On the top right of the page, click on "Show Info Panel" and then labels.

    This process is documented here.

    Moreover, feel free to file a feature requests in Google's Issue Tracker asking for the addition of a labeling option in the gcloud CLI.