Reputation: 27
I am trying to deploy my nodejs application to cloud run using the following command
gcloud run deploy --image gcr.io/[project-id]/helloworld --platform managed
Before running this command I built two cloud build images and trying to deploy the latest build using above command. But getting the following error
ERROR: (gcloud.run.deploy) Error parsing [service].
The [service] resource is not properly specified.
Failed to find attribute [service]. The attribute can be set in the following ways:
- provide the argument [SERVICE] on the command line
- specify the service name from an interactive prompt
I don't know which is causing error. Can anybody help me with this? Thank you
Upvotes: 0
Views: 6483
Reputation: 4431
Try specifying the Service ID as an argument, replacing my-service
with the desired name:
gcloud run deploy my-service --image gcr.io/[project-id]/helloworld --platform managed
Also, make sure you're using the latest Cloud SDK with gcloud components update
.
Upvotes: 7
Reputation: 7909
$ gcloud run deploy --image gcr.io/cloudrun/hello --platform managed
should prompt you to pick a platform, pick a region and a service name. Please try with this command.
In your command, make sure to replace [project-id]
with you GCP project ID.
Upvotes: 0