TransWikia.com

Find out which GCP project is hosting which appengine or which GCS bucket

Server Fault Asked by Rakib on December 22, 2020

We have many projects inside our Organization GCP account.

We have many legacy GCS buckets and many legacy AppEngines hosted inside our various projects.

All these buckets and AppEngines are served via custom CNAME.

We use a separate DNS service outside GCP to manage our DNS records.


The problem we are facing today is, for these legacy buckets and legacy AppEngines, every DNS record says the CNAME value is ghs.googlehosted.com. We are now struggling to locate:

  • which CNAME entry is for a bucket
  • which CNAME entry is for an AppEngine
  • which of our MANY GCP projects is hosting the bucket/AppEngine of that CNAME record

How do we find this out when there 200+ projects in the GCP account?

2 Answers

For Cloud Storage it might be useful for you to use this command, that will retrieve the web semantics configuration for a bucket.

gsutil web get gs://<bucket_name>

Also for App Engine, you can use gcloud app domain-mappings list and list the domain-mappings for a given project.

Answered by llompalles on December 22, 2020

My suggestion is to export your billing account to BigQuery and analyze your dataset using SQL-like language.

Answered by surfingonthenet on December 22, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP