EDIT: Upon further inspection, I found that the URL of the Datastore Admin is already https://ah-builtin-python-bundle-dot-[project-id].appspot.com/_ah/datastore_admin?app_id=[project-id]
. It was probably enabled before the "default" tag was put implemented, so it was catching all traffic into the sub-domain. So, no need to re-map the URL.
There is this existing project which I have been added to work on, and it has the [project-id].appspot.com already occupied by a stock Datastore Admin page.
I needed to host a few more appspot URLs, some of which to act as PubSub endpoints, so I found this thread explaining that all I need to do is add a service tag in the app.yaml.
However, on deploying, I get this error
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: The first service (module) you upload to a new application must be the 'default' service (module). Please upload a version of the 'default' service (module) before uploading a version for the 'upload-watcher' service (module). See the documentation for more information. Python: (https://developers.google.com/appengine/docs/python/modules/#Python_Uploading%%20modules) Java: (https://developers.google.com/appengine/docs/java/modules/#Java_Uploading%%20modules)
with 'upload-watcher' being the service name I assigned to this app engine app.
This user faced a similar issue, but he sought a different workaround and the answer was merely conceptual.
Mechanically, is this the right code to add into the chosen app.yaml? :
service: default
Further, it appears to me that the Datastore Admin should NOT be made the default service, and should be kept more or less obscured from public view. Hence, ideally, I would like to remap the datastore admin to a secondary service URL, like
datastore-admin-dot-[project-id].appspot.com
How can this be done?