Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Remove domain mapping after deleting project

Hello

I had started a project in Google Cloud and during that process I have added my own domain to App Engine. Then I closed/turned off that project. Now there is an issue. Domain is mapped under that project that has been shutdown. Now all I can do is to bring that project back, attach Payment account but even then there is no option to Activate App Engine - it simply says that "App Engine attached to that project was turned off" - it there is a way that it can be turned on I will be home. But there isnt. I have tried all thru CMD or PowerShell - I am at point that I can login to that project I just partially brought back. I can use command gcloud app domain-mappings list - and then I see my domain with SSL certificate. But I cannot delete this mapping and that is what I need because now my domain is tied to a project no longer in use. When tried do delete it by command: gcloud app domain-mappings delete "domain" I have reply from system that: 

(gcloud.app.domain-mappings.delete) NOT_FOUND: Project not found. This command is authenticated as (PII Removed by Staff) which is the active account specified by the [core/account] property

But Im "in the project" - I have listed my domain and I also confirm that I pick right project to login to: command: gcloud projects list . 

I just cant figure out why I cannot simply remove mapping of my domain or simply start App Engine to a project that was brought back. .

Kind regards

Casper

 

0 1 195
1 REPLY 1

-Rhett
Former Googler

Hi @KacperroX ,

Welcome to the Google Cloud Community!

If you restore a deleted project, it may take up to 36 hours for Google Cloud services such as App Engine to be fully restored. You might get error messages such as the following during this period:

"code": 404, "message": "Project not found.", "status": "NOT_FOUND"

If you need to use your custom domain mapping with a new project or app deployment, you can try this workaround shared by @jaydubu. Using the DomainOverrideStrategy method, you can force your current App Engine application to use a previous App Engine application’s custom domain mapping. Note that you need to have the correct roles or permissions to be authorized to update the custom domain map.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.