Google Cloud SQL with a Public IP | Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 เม.ย. 2023
  • Learn how to:
    1. Set up a Google Cloud SQL database with a public IP address. I use Postgres in this demo.
    2. How to connect to it locally using either an authorized network or the Cloud SQL Proxy.
    3. Then how to connect a locally running API to it. I'm using a .Net 6 API in this example.
    4. Finally how to deploy that API to Cloud Run, and how to configure the connection there.
    #development #sql #programming
    Documentation links:
    Cloud SQL Proxy
    cloud.google.com/sql/docs/pos...
    gcloud cli
    cloud.google.com/sdk/docs/ins...
    Set up gcloud Application Default Credentials
    cloud.google.com/docs/authent...
    Connecting Cloud Run to Cloud SQL
    cloud.google.com/sql/docs/pos...
    Previous video on Manually Deploy Docker Image to Google Cloud Run
    • Manually Deploy Docker...
    Follow me on social media!
    Twitter: / scriptbytesio
    Instagram: / scriptbytes
    Check out my blog!
    scriptbytes.io/

ความคิดเห็น • 18

  • @kamanemo
    @kamanemo 10 หลายเดือนก่อน +1

    Thanks. Great job!

  • @guilhermematos1953
    @guilhermematos1953 2 หลายเดือนก่อน

    thats what i looking for, thanks!

    • @scriptbytes
      @scriptbytes  หลายเดือนก่อน

      Glad I could help!

  • @mrestrella4
    @mrestrella4 8 หลายเดือนก่อน

    Good video, Thanks!

    • @scriptbytes
      @scriptbytes  8 หลายเดือนก่อน

      Glad you liked it! Thanks for watching.

  • @tensor2539
    @tensor2539 4 หลายเดือนก่อน

    this video is helpful!

    • @scriptbytes
      @scriptbytes  4 หลายเดือนก่อน

      Thanks for watching!

  • @abdulmalikmahasneh9853
    @abdulmalikmahasneh9853 4 หลายเดือนก่อน

    great job and thank you for your effrots,
    can you make another video on how to connect to cloud sql from GKE (Kubernetes cluster) ?

    • @scriptbytes
      @scriptbytes  4 หลายเดือนก่อน

      I haven’t used GKE so if I do this it would be after a bunch of experimenting

  • @gordanabaksic2573
    @gordanabaksic2573 ปีที่แล้ว +1

    😊

  • @TrikNgonlen
    @TrikNgonlen 7 หลายเดือนก่อน

    Can you make tutorial on how to deploy laravel app with mysql to Cloud Run + Cloud SQL service?
    Thanks.

    • @scriptbytes
      @scriptbytes  7 หลายเดือนก่อน

      Unfortunately I don't know much about PHP/Laravel so I dunno how much help I would be with that.

    • @TrikNgonlen
      @TrikNgonlen 7 หลายเดือนก่อน +1

      @@scriptbytes that's ok..the point is "I need help on how to deploy web app or API with Cloud Run + Cloud SQL service". Thank you.

    • @scriptbytes
      @scriptbytes  7 หลายเดือนก่อน +1

      Ah yes of course. That is something I've had on my list! Not sure when I'll get to it, but hopefully soon!

    • @TrikNgonlen
      @TrikNgonlen 7 หลายเดือนก่อน

      It's great to hear that.@@scriptbytes

  • @gordanabaksic2573
    @gordanabaksic2573 ปีที่แล้ว +2

    18:59

  • @putinninovacuna8976
    @putinninovacuna8976 2 หลายเดือนก่อน

    Why does connecting my web app to my database in Cloud SQL have to be so complex? I just want to connect my database to an AlloyDB, Cloud SQL, or some VM without so many complications. All I ask is to connect my web app so that it can be used and my embeddings can be saved. That’s all I want to do. But you say that I even need to know the IPs of the users who are going to use the app so that they can have access to save data in the database. It doesn’t make sense to have so much complexity.

    • @scriptbytes
      @scriptbytes  2 หลายเดือนก่อน

      It’s all a balance of security and usability, and also it’s a result of using cloud managed services.
      However, you don’t need the IPs of all your users. That part is only for developers who need to connect directly to your database.