I upload my endpoints app to GCP AppEngine and it work nice.
But in the dashboard, the service name be assigned to 'default'.
Asked
Active
Viewed 7,062 times
5

Lak Fu
- 165
- 3
- 12
-
2Note that you can only change the name for the *additional* services, the `default` service is mandatory, see https://stackoverflow.com/a/44193480/4495081 – Dan Cornilescu Jan 18 '19 at 10:47
3 Answers
11
There are several ways to set a service's name in App Engine. If you use Java with Maven for example, you can:
- set
<module>service_name</module>
in the appengine-web.xml file
If you use Python, you can:
- set
service: service_name
in the app.yaml file

LundinCast
- 9,412
- 4
- 36
- 48
-
1`-v` set the version of the service you are deploying. not the service name. – Claudio Jun 17 '19 at 14:34
6
Use service: service_name
in your app.yaml
file.

edbighead
- 5,607
- 5
- 29
- 35
-
Thanks for your reply, but I develop with Eclipse and Java. After check the document https://cloud.google.com/appengine/docs/standard/java/configuration-files, I cannot find the doc about app.yaml for java, is there have any other way to configure it? – Lak Fu Jan 18 '19 at 08:31
-
Also valid for other languages. Example: PHP7, look for element "service" in documentation (https://cloud.google.com/appengine/docs/standard/php7/config/appref). Also, note that this may *create* new services. Spot the phrase "Required if creating a service." – Fabien Haddadi Sep 10 '21 at 20:42
0
Agreed on below answers. I did the same thing in app.yaml file in spring-boot appengine and it's working...
runtime: java11
instance_class: F4
service: appengine-spring-boot
handlers:
- url: /.*
script: this field is required, but ignored

Ajay Kumar
- 4,864
- 1
- 41
- 44