Google Cloud Functions Tutorial: HTTP & API Gateway & Pub/Sub Triggers + Authentication & Serverless

Поделиться
HTML-код
  • Опубликовано: 4 дек 2024

Комментарии • 78

  • @AntonPutra
    @AntonPutra  Год назад +4

    🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com

  • @Mamadeshun
    @Mamadeshun 10 месяцев назад +5

    Truely this is the best tutorial for Google Cloud Function and the most frequent related services EVER!! THANK YOU

  • @AntonPutra
    @AntonPutra  2 года назад +10

    ⏱️TIMESTAMPS⏱️
    0:00 Intro
    0:33 Cloud Functions HTTP Trigger
    2:39 Cloud Functions Authentication
    4:06 Authenticating Function to Function Calls
    7:15 Using Secrets in Google Cloud Functions
    10:00 Deploy Cloud Function from GitHub
    13:51 Google Cloud Functions CI CD
    17:45 Deploy Cloud Function Using Terraform
    19:31 Run Cloud Functions Locally
    20:17 Cloud Functions PubSub Trigger
    22:03 Trigger a Function on Cloud Storage Changes
    23:42 API Gateway with Cloud Functions

  • @TorbenDury-n7u
    @TorbenDury-n7u Год назад +2

    very very concise video, boiled down to the important things. thank you!

  • @TrippleMYouAlreadyKnow
    @TrippleMYouAlreadyKnow 2 года назад +6

    Great content, clear and very to the point with practical examples! Thanks so much!

  • @arthcruz
    @arthcruz 2 года назад +3

    By far the best video about this subject.

  • @juanjuarez3405
    @juanjuarez3405 Год назад +1

    Excellent contribution, I made a cloud function (Java) with authorization that connects to bigquery and returns a json. In the console I generate my print-indentity-token and consume this "service" from postman, but I don't know how to consume this service from another cloud, or how to get the print-indentity-token to send it to you in the header

    • @AntonPutra
      @AntonPutra  Год назад

      Thank you! It's been a while since I worked with Google functions. They have released a new version based on Cloud Run, so you might want to look into it.

  • @FIBONACCIVEGA
    @FIBONACCIVEGA 7 дней назад

    Hello hello. Back again with this video gem. I wanted to ask you a question. I have my workflow configured which is connected to the cloud function service and the scheduler (which work correctly). I designed the cloud function and tested it before creating the workflow to make sure first of all that the code was correct. When I finished making the YAML, I get a 401 Forbidden error, which indicates that I do not have permissions to invoke your Cloud Function. My function has the permissions but I have not been able to solve this problem. What can I do or how could I solve it? Have I skipped a step? I have authentication and permissions configured. Greetings and thanks for your videos.

  • @mankmantos9292
    @mankmantos9292 Год назад +3

    Thank you a million ma man, saved alot of time.

  • @functional-human
    @functional-human 2 года назад +2

    Can you make a tutorial on setting up integration test for cloud function? Also waiting for Api gateway video

  • @abbaskp3330
    @abbaskp3330 Год назад +1

    Extraordinary 🎉…Thanks a lot…please more videos.

  • @HennesysDisla
    @HennesysDisla 7 месяцев назад +1

    curl call on function b did not return the message "Hello from function A" it gave the following error "Your client does not have permission to get URL /function-b from this server."

    • @omarquishawi875
      @omarquishawi875 Месяц назад

      @AntonPutra could you please explain why is this happening ?

  • @DanielRios549
    @DanielRios549 7 месяцев назад

    Can I use GCP Functions to chech user authetication in a GCP CDN project?

    • @AntonPutra
      @AntonPutra  7 месяцев назад

      Most likely, you can, but I can tell you this off the top of my head

  • @CLee-q9h
    @CLee-q9h Месяц назад

    How to open terminal?

  • @DominicLucchi
    @DominicLucchi 6 месяцев назад +1

    goated tutorial

  • @alexisurquijo4486
    @alexisurquijo4486 Год назад

    Amazing! Is there a way to protect cloud function by using oauth 2.0 authorization server? I mean using an authorization server that generate an access token and then call a function using this token?

    • @AntonPutra
      @AntonPutra  Год назад

      Most likely, they added some functionality in 2dn gen

  • @AntonPutra
    @AntonPutra  Год назад +1

    👉 How to Manage Secrets in Terraform - ruclips.net/video/3N0tGKwvBdA/видео.html
    👉 Terraform Tips & Tricks - ruclips.net/video/7S94oUTy2z4/видео.html
    👉 ArgoCD Tutorial - ruclips.net/video/zGndgdGa1Tc/видео.html

  • @ravendfj
    @ravendfj 2 месяца назад

    Hi, when I create de function, it asks me for a connector. It is mandatory.
    What should I do?
    Thanks.

    • @AntonPutra
      @AntonPutra  2 месяца назад

      this tutorial covers v1 but you probably trying to create v2 functions based on cloud run

  • @julijanniko
    @julijanniko 2 года назад +1

    Awesome video. Thanks!

  • @WaqarMurtaza-yk2fh
    @WaqarMurtaza-yk2fh 5 месяцев назад

    What if I don't have an owner role, will i need to change IAM policy to allUsers 'invoker role' to invoke the function? Also to invoke with such permissions set, will I still have to pass token in headers?

    • @AntonPutra
      @AntonPutra  5 месяцев назад

      It's been a while since I recorded that tutorial. I don't have the answer off the top of my head.

  • @alessandroceccarelli6889
    @alessandroceccarelli6889 8 месяцев назад

    How do you do that in python? Thank you so much

    • @AntonPutra
      @AntonPutra  8 месяцев назад

      I did not get a question, but they have a separate wiki for python functions - cloud.google.com/functions/docs/create-deploy-http-python

  • @shantanu_kumar
    @shantanu_kumar 11 месяцев назад +1

    Major thanks :)

    • @AntonPutra
      @AntonPutra  11 месяцев назад

      Welcome, but it's slightly outdated. They released Gen 2 functions a while ago.

    • @shantanu_kumar
      @shantanu_kumar 11 месяцев назад

      @@AntonPutra Maybe, but I was so damn clueless about cloud functions, that this video formed the foundation of my learning. Please keep at it. You have a way of distilling down the concepts so well.

  • @rahmataulia
    @rahmataulia Год назад

    Thx pak anton!
    Do you have udemy course?

    • @AntonPutra
      @AntonPutra  Год назад

      Not yet, still have a full time job hard to combine

  • @lukaszgmail
    @lukaszgmail 9 месяцев назад

    Excuse me, why my post are deleting? Two times it hapens.

  • @titikay4real
    @titikay4real 6 месяцев назад

    This tutorial is A1!

    • @AntonPutra
      @AntonPutra  6 месяцев назад

      It's the first iteration of cloud functions, I'll refresh it soon to v2

  • @emilioizquierdo7395
    @emilioizquierdo7395 2 года назад

    Hi, great video, thank you. You mention another video for deep dive on api gateway. Is that coming out soon?

  • @informationsatellite5155
    @informationsatellite5155 Год назад +1

    amazing..thanks a lot..

  • @rohithkotar8466
    @rohithkotar8466 2 года назад

    I need to run a function when ever files are modified in any buckets. How can I mention multiple buckets in trigger event? What can be the solution for this?

    • @AntonPutra
      @AntonPutra  2 года назад

      Not sure, but you can create multiple functions, they free until they invoked...

  • @MrRidwanbejoz
    @MrRidwanbejoz Год назад +1

    your name sounds like Indonesian name. Thanks for the video, Anton.

    • @AntonPutra
      @AntonPutra  Год назад +1

      Thanks ridwan! I got it a lot when i was at bali =)

    • @MrRidwanbejoz
      @MrRidwanbejoz Год назад

      @@AntonPutra Ah I see. That should be awesome experience, Anton.

  • @ashishgannapuram1497
    @ashishgannapuram1497 Год назад

    can i configure cloud watch alerts from aws to the pubsub topic?
    please reply me with answer

    • @AntonPutra
      @AntonPutra  Год назад

      You need to be more specific. Do you want to send cloud watch alerts to gcp? why?

    • @ashishgannapuram1497
      @ashishgannapuram1497 Год назад

      @@AntonPutra we have configured gcp pubsub alerts to cortex alert manager and for multiple cloud in order to follow same hierarchy I need to send alert manager via pubsub to perform enhancement of alert msgs using cloud functions.

  • @andrewzakharov1352
    @andrewzakharov1352 2 года назад +1

    super
    thank you

  • @AndrewZhilenko
    @AndrewZhilenko 2 года назад +1

    Thanks a lot!

  • @mamun001
    @mamun001 Год назад +1

    Thank you

  • @slambingo_
    @slambingo_ Год назад

    4:04 what is he saying? i can't understand it

    • @AntonPutra
      @AntonPutra  Год назад

      you need to install "gcloud"

    • @slambingo_
      @slambingo_ Год назад

      ​@@AntonPutrathank you

  • @good_vibes_20
    @good_vibes_20 6 месяцев назад

    Nice job

    • @AntonPutra
      @AntonPutra  6 месяцев назад +1

      thank you, little bit outdated, i'll soon make a new one

    • @good_vibes_20
      @good_vibes_20 6 месяцев назад

      @@AntonPutra Sounds good. Subbed!

  • @jaimellanos5386
    @jaimellanos5386 Год назад

    Hola buenas alguien que me pueda ayudar con un trabajo.

    • @AntonPutra
      @AntonPutra  Год назад

      Thanks, if I understood the translation correctly. =)

  • @DxBang3D
    @DxBang3D Год назад

    Subtitles are all over the place... not even sure they are for this video..

  • @starbutterfly6950
    @starbutterfly6950 2 года назад

    подтяни акцент, а так норм

  • @TechMarketer
    @TechMarketer 2 года назад +1

    Nice video, unfortunately:
    1 - I can't find the code used in the tutorial
    2 - The explanations (example: why we should use secret manager?) are insufficient
    Слава Україні!
    Pawel.

    • @AntonPutra
      @AntonPutra  2 года назад +1

      Thank you for feedback! You can find the source code on my website - antonputra.com/google/google-cloud-functions-tutorial/#api-gateway-with-cloud-functions. Some part of it on GitHub - github.com/antonputra/tutorials/tree/main/lessons/106

    • @TechMarketer
      @TechMarketer 2 года назад

      @Anton Putra Thx!!