google-cloud-rungoogle-deployment-manager

What's the right type for GCP cloud run in a deployment manager?


Attempting to use a deployment manager to create a Cloud Run, as follows:

resources:
- name: myService_cloudRun
  type: gcp-types/run-v1:projects.locations.services
  properties:
    location: us-east1
    serviceId: myService
    template:
      metadata:
        name: dekart
        annotations:
          run.googleapis.com/ingress: all
      spec:
        containers:
        - image: x/y:z

Which gives me

message: The provider run-v1 at project gcp-types was not found in public GCP types

And indeed, this is not in this list of types -- but I don't see anything resembling cloud run. Thoughts?


Solution

  • Deploying Cloud Run using Deployment Manager is unsupported and infeasible as of the moment and Terraform would be best to implement this instead.

    You may, however, check this old post where you can find an example on how to implement it and its workaround