AnswerBun.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!

Related Questions

DC for new Hyper-V cluster

3  Asked on December 1, 2020 by counter-hulak

   

With Glassfish, how to resolve https URL to http URL

1  Asked on November 29, 2020 by tale852150

 

Apache PHP-FPM “Software caused connection abort”

1  Asked on November 29, 2020 by craig-francis

   

NGINX Enable CORS for a Google Places API call

1  Asked on November 29, 2020 by eusthace

     

Systemd unit not found on start but exists on status

0  Asked on November 29, 2020 by texhik

   

how to avoid logging to /var/log/syslog for a given application?

0  Asked on November 27, 2020 by downtheroad

 

Google App Engine 500 internal server error

1  Asked on November 27, 2020 by elyass-attachi

         

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP