kandi X-RAY | domain-mapping Summary
kandi X-RAY | domain-mapping Summary
domain-mapping
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get countries
- Render the registrant fields .
- Map domain .
- Is mapped domain?
- Populate DNS records .
- Render excluded pages
- Render the network options page .
- Render the domain mapping messages .
- Render account fields .
- Register plugin scripts
domain-mapping Key Features
domain-mapping Examples and Code Snippets
Community Discussions
Trending Discussions on domain-mapping
QUESTION
I created App Engine custom domains with my own GCP user account.
If I run this command as that user I see a resourceRecords:
field with all the A and AAAA records:
gcloud app domain-mappings describe 'mydom.com'
If I run the SAME command as a different user (one that has app engine admin and viewer roles) I see the resourceRecords:
field with only a CNAME record. Why is this?
No permissions errors, no other errors. The SAME command run by different users returns different values from the describe API.
This behavior is unexpected. How/why is this happening?
I run Terraform centrally with a GSA. That GSA is getting different data from the API because of whatever this behavior is doing plans return incorrect info.
EDIT: There is now an official bug report for this (please star it!) https://issuetracker.google.com/issues/207364598
...ANSWER
Answered 2021-Nov-23 at 16:04I found the reason for this frustratingly bizarre and unhelpful and poorly documented behavior.
I found the issue through this SO post: How to use Terraform `google_app_engine_domain_mapping` with service account?
If you are not an "owner" for the domain as defined here the API will indeed not return the IP address list and also not bother throwing any kind of helpful warning message.
While my question wasn't terraform specific it looks like you might be able to terraform the whole thing with the help of this custom provider: https://github.com/hectorj/terraform-provider-googlesiteverification.
Also, I tried adding the email of a google group as an owner and that did not seem to work. Individual users must be added.
There is an official bug for this (please star so google fixes it!): https://issuetracker.google.com/issues/207364598
QUESTION
I'm developing a service which will have a subdomain for each customer. So far I've set a DNS rule on Google Domains as
* | CNAME | 3600 | ghs.googlehosted.com.
and then I add the mapping for each subdomain in the Cloud Run console. I want to do all this programmatically everytime a new user registers.
The DNS rule will handle automatically any new subdomain, and to map it to the service I'll use the gcloud command:
gcloud beta run domain-mappings create --service frontend --domain sub.domain.com
Now, how can I check when the Cloud Run provisioning has done so that I can notify the customer that the platform is ready to use? I could CRON every minute the command gcloud beta run domain-mappings describe --domain sub.domain.com
, parse the JSON output and check if the status has done. It's expensive, but it should work.
The problem is that even if the gcloud cli or the web console mark the provisioning as done, the platform isn't reachable for another 5-10 minutes, resulting in a ERR_CONNECTION_REFUSED
error. The service logs show that a request to the subdomain is being made, but somehow it won't serve it.
ANSWER
Answered 2021-Sep-28 at 12:05I ended up using a load balancer as suggested. I followed this doc "Setting up a load balancer with Cloud Run, App Engine, or Cloud Functions", the only different thing is that I provided my own wildcard certificate (thanks to Let's Encrypt and certbox).
Now I can just use the Google Domains' API to instantly create a subdomain.
QUESTION
I previously added and verified a custom domain "foo.club" and "www.foo.club" (fake examples) to my app engine project.
I let foo.club lapse and so that domain no longer exists. However I cannot remove the domain (or the www) version from the app engine custom domain list.
When I try (in Settings/Custom domains), the 'trashcan' icon is disabled and there is a red exclamation point next to the domain that say "Certificate activation has failed. DNS records could not be found." This last point is expected since the domain does not exist.
There's also an informational box that says "All domains mapped to this application are shown below. Only owners of a domain may remove one of its mappings." I'm not sure if that box always exists or is speficially trying to explain why I can't delete the custom domain.
Regardless, I am the only user in my GCP project and I am the owner of the GCP project (and I was previously the owner of the now-deleted domain).
Further, this domain is no longer present in the list at "https://www.google.com/webmasters/verification/home".
When I try from the commandline, I get:
...ANSWER
Answered 2020-Oct-28 at 12:46According to the App Engine Admin API:
A user must be authorized to administer the associated domain in order to delete a
DomainMapping
resource.
This means that you must be a domain owner from Google's point of view in order to manage that domain mapping.
If the domain no longer appears in the verified domains in the webmaster central, it means Google does not consider that account as owner of the domain, and that account will not be able to delete the domain mapping.
I guess there are a few options to move forward:
- Just leave the domain mapping there
- Re-purchase the domain and re-verify your ownership
- Open a support ticket with GCP (if you have a support package). Not sure this option will work, but it's worth a try.
QUESTION
I have a frontend in cloud run I want to map to a domain purchased in DoDaddy (breadfree.es) for a demo, but after configuring it in Domain mapping it has taken up to 16 hours and it still does not work. Can you give me any advice? I read it takes from 4 to 8 hours for the dns to propagate, and also that for some it works deleting the records and putting them again (in a link below). Is there any other solution that works in GoDaddy?
Also, it is so strange to me because I have discovered although the domain is not mapped, if I map this service to a subdomain, it is propagated faster. I mapped it with tienda.breadfree.es, and it works, although I prefer it to be map to breadfree.es (tienda means shop in Spanish).
Thanks so much in advance for your help!
Google Cloud Run - Domain Mapping stuck at Certificate Provisioning
...ANSWER
Answered 2020-Sep-14 at 08:08In general for Cloud Run (fully managed) it takes 24 hours until the domain is propagated. Even though the SSL certificate can take less than 15 minutes the full process will take up to 24 hours.
This process can take as much as 24 hours because of the certificates and the time needed to be issues and renewed. Indeed, when you map a service to a custom domain like yours (tienda) a managed certificate is automatically issued but for a domain it takes more and it is not automatically issued.
You could try what you posted in the StackOverflow post but you should wait and see after 24 hours if the domain is still not working. Usually if the domain is still not working after 24 hours probably something went wrong in the configuration phase or a step was skipped and I suggest you to open a support ticket in order to check with the Google Team what is the issue.
QUESTION
I am using Google Cloud Run with Pulumi (similar to Terraform). My setup for Cloud Run's domain mapping is:
...ANSWER
Answered 2020-Mar-02 at 20:48I haven't tried running this but at least this code compiles:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install domain-mapping
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page