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.

I am trying to register domain google cloud but unable to access globally

Hi sir, mam

I dont have enough knowledge of gcp. But i am trying to purchase domain from gcp and i need to add domain to cloud run to access cloud run publicly. I need help. If you have start to end details. Please help.

1 2 1,231
2 REPLIES 2

I'd be happy to guide you through the process of purchasing a domain from Google Domains and connecting it to Cloud Run.

Step 1: Purchase a Domain

  • Go to Google Domains.
  • Search for your desired domain name and check for its availability.
  • If it's available, you can proceed to purchase it. Follow the on-screen instructions to complete the purchase.

Step 2: Access Google Cloud Console

  • Go to the Google Cloud Console.
  • Sign in with your Google account. If you don't have a Google Cloud account, you can create one.

Step 3: Open Cloud Run

  • In the Google Cloud Console, navigate to "Cloud Run" from the left-hand navigation menu.

Step 4: Create a Service in Cloud Run

  • Click the "Create Service" button.
  • Choose the container image you want to run on Cloud Run. You can deploy a new revision or select an existing one.
  • Configure your service settings, including authentication, memory, and other options.
  • Click "Next" to proceed.

Step 5: Set Up the Domain Mapping

  • After your service is created, you'll see it listed in the Cloud Run dashboard.
  • Click on the service name to open its details.
  • In the left-hand navigation, select "Custom domains."
  • Click the "Add a custom domain" button.
  • Enter your purchased domain name and click "Continue."
  • You'll be prompted to verify your domain ownership, which usually involves adding a DNS record. You'll receive instructions on how to do this from Google Domains.
  • Follow the verification steps, which might involve updating DNS records in Google Domains. Once verified, the custom domain will be linked to your Cloud Run service.

Step 6: Wait for DNS Propagation

  • DNS changes can take time to propagate globally, so it might not work immediately. Be patient, and check back after a few hours.
  • Once the DNS changes propagate, your Cloud Run service will be accessible using the custom domain.

And that's it! You've successfully purchased a domain and connected it to your Cloud Run service.

Good luck with your project!

 

Thank you @Robina i will try this solution and implment in gcp