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

Поделиться
HTML-код
  • Опубликовано: 11 июл 2024
  • 🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
    ▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬
    ► I’m a Senior Software Engineer at Juniper Networks (12+ years of experience)
    ► Located in San Francisco Bay Area, CA (US citizen)
    ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
    ► LinkedIn: / anton-putra
    ► Twitter/X: / antonvputra
    ► GitHub: github.com/antonputra
    ► Email: me@antonputra.com
    ▬▬▬▬▬▬ Related videos 👨‍🏫 ▬▬▬▬▬▬
    👉 [Playlist] Kubernetes Tutorials: • Kubernetes Tutorials
    👉 [Playlist] Terraform Tutorials: • Terraform Tutorials fo...
    👉 [Playlist] Network Tutorials: • Network Tutorials
    👉 [Playlist] Apache Kafka Tutorials: • Apache Kafka Tutorials
    👉 [Playlist] Performance Benchmarks: • Performance Benchmarks
    👉 [Playlist] Database Tutorials: • Database Tutorials
    =========
    ⏱️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
    =========
    Source Code
    📚 - Tutorial: antonputra.com/google/google-...
    #GCP #CloudFunctions #DevOps
  • НаукаНаука

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

  • @AntonPutra
    @AntonPutra  9 месяцев назад +4

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

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

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

  • @TrippleMYouAlreadyKnow
    @TrippleMYouAlreadyKnow Год назад +6

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

  • @ArthurSilva-mb5fq
    @ArthurSilva-mb5fq Год назад +3

    By far the best video about this subject.

  • @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

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

    ⏱️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

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

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

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

    Awesome video. Thanks!

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

    Extraordinary 🎉…Thanks a lot…please more videos.

  • @DominicLucchi
    @DominicLucchi Месяц назад +1

    goated tutorial

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

    This tutorial is A1!

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

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

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

    Thanks a lot!

  • @informationsatellite5155
    @informationsatellite5155 8 месяцев назад +1

    amazing..thanks a lot..

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

    super
    thank you

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

    Major thanks :)

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

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

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

      @@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.

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

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

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

    Thank you

  • @juanjuarez3405
    @juanjuarez3405 7 месяцев назад +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  7 месяцев назад

      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.

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

    Nice job

    • @AntonPutra
      @AntonPutra  Месяц назад +1

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

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

      @@AntonPutra Sounds good. Subbed!

  • @neeldeshmukh6918
    @neeldeshmukh6918 2 года назад +2

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

  • @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

  • @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.

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

    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."

  • @WaqarMurtaza-yk2fh
    @WaqarMurtaza-yk2fh 18 дней назад

    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  17 дней назад

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

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

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

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

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

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

    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  Год назад

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

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

    Thx pak anton!
    Do you have udemy course?

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

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

  • @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.

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

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

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

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

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

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

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

    Hola buenas alguien que me pueda ayudar con un trabajo.

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

      Thanks, if I understood the translation correctly. =)

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

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

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

      you need to install "gcloud"

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

      ​@@AntonPutrathank you

  • @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!!

  • @user-gv6yo3si3s
    @user-gv6yo3si3s 8 месяцев назад +1

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

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

      Thank for the feedback!