0

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 2

1

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

0

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.

1
  • That is not the point. If we knew which project the domain is mapped to, then we wouldn't be having this question at all. This question was raised because we know the domain name, but we do not know which GCP project that domain name is mapped to
    – Rakib
    Nov 14, 2020 at 14:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .