How do I deploy AWS Lambda using Terraform?

Поділитися
Вставка
  • Опубліковано 27 жов 2024

КОМЕНТАРІ • 87

  • @dissident4383
    @dissident4383 10 місяців тому +3

    By far the best explanation of this on UA-cam. Thank you for going through each step clearly instead of the others who just provide the example with no explanation.

    • @RahulWagh
      @RahulWagh  10 місяців тому

      Glad it was helpful!

    • @dus10dnd
      @dus10dnd 5 місяців тому

      No, it isn't.

  • @stevenchavez706
    @stevenchavez706 2 роки тому +1

    Great video! Thank you. I would love to see a small example of passing variables from Terraform to the Lambda's Python script... a common use case for automation/modularization.

  • @philippesantossimoes9241
    @philippesantossimoes9241 7 місяців тому

    Succinct explanation! Thanks for the collaboration.

  • @anilpatil8299
    @anilpatil8299 2 місяці тому

    Nice example and explanation!!

  • @AwargiforSirTarar
    @AwargiforSirTarar Рік тому

    One of the best explaination.

  • @pawanbasu350
    @pawanbasu350 2 роки тому +1

    Please also create a video on creating the EKS cluster along with its IAM roles and vertical scaling on the cluster using the terraform.Please!!!

    • @RahulWagh
      @RahulWagh  2 роки тому +1

      Surely I will add it to my list

  • @CuteBoy735
    @CuteBoy735 3 місяці тому

    best tutorial! thanks

  • @sotolaolusegun3955
    @sotolaolusegun3955 8 місяців тому

    Best explanation. Thanks

    • @RahulWagh
      @RahulWagh  8 місяців тому

      You are welcome!

  • @emekaanachebe415
    @emekaanachebe415 11 місяців тому +2

    is it a good idea put the zip file in the same python directory?
    doesn't that mean that whenever the file is zipped again, the old zip file would be zipped along with the code?

    • @David180398
      @David180398 21 день тому +1

      I thought the same, you should put it in another directory or have a way to ignore-match-name. I'm new to terraform so I don't know the way

  • @RahulPatil-st3bu
    @RahulPatil-st3bu 8 місяців тому

    Superb explanation possibly cover real-time

  • @atulsachan3908
    @atulsachan3908 Рік тому

    Really Liked it

  • @aidataverse
    @aidataverse 29 днів тому +1

    Very good

  • @luc917
    @luc917 8 місяців тому

    Great explanation, i have been struggling with the iam role creation and attachment . Do you cover trigger in any future videos ex s3 file type uploaded to s3 triggers lambda sending to sqs or insert to db table? This seems as if it would cover so many scenarios.

    • @RahulWagh
      @RahulWagh  8 місяців тому

      Great suggestion! But not covered yet

  • @malikabdullah100
    @malikabdullah100 Рік тому

    Excellent explanation. Thank you so much for your effort.

  • @sumanth8576
    @sumanth8576 Рік тому

    Thank you very much, it helped in resolving my error while giving handler

  • @paoloblaquera-guitarist461
    @paoloblaquera-guitarist461 Рік тому

    Great video, Thanks!

  • @xhoitravel
    @xhoitravel Рік тому

    Very good explanation for beginners. Thank you :)

  • @olanrewajubakare451
    @olanrewajubakare451 2 роки тому +1

    Hi Rahul, its nicely done video especially for beginners. you mentioned you added code in git and shared a link , but actually it isn't there, could you add it, Thank you

  • @pritamdeokule
    @pritamdeokule 7 місяців тому

    very useful session. Thank You :)

    • @RahulWagh
      @RahulWagh  7 місяців тому

      Glad it was helpful!

  • @dus10dnd
    @dus10dnd 5 місяців тому

    Dude... you don't need a depends_on in your aws_lambda_function resource. You specify the role and that automatically establishes the dependency mapping within Terraform. In addition, the filename argument should not be a literal string. It should data.archive_file.zip_the_python_code.output_path.

    • @RahulWagh
      @RahulWagh  5 місяців тому

      Thanks for noticing

  • @VGaming-msv
    @VGaming-msv Рік тому

    Hi Rahul can we automate the testing process as well

    • @RahulWagh
      @RahulWagh  Рік тому

      Yes offcourse it is possible to automate the testing process

  • @fauxz3782
    @fauxz3782 Рік тому

    You are a genius !

  • @somefunwithpal2627
    @somefunwithpal2627 2 роки тому +2

    Hi, its nicely done video especially for beginners. you mentioned you added code in git and shared a link , but actually it isnt there, could you add it, TQ!

    • @RahulWagh
      @RahulWagh  2 роки тому

      Hey thanks for noticing I will share GitHub repo soon

  • @koemdjiev
    @koemdjiev Рік тому

    Is it possible to locally debug the lambda function before deploying? (Same way we can do it with AWS SAM)

  • @harikamorisetti3360
    @harikamorisetti3360 Рік тому

    I have a requirement where I need to place the zip file in specified S3 bucket. Where should I place bucket details in tf files? Can you please explain?

  • @Googlepaynnn
    @Googlepaynnn Рік тому

    Great video and thank you, then how we can create alarms based on lambda monitoring how we can do using terraform?
    please help me here?

  • @praveenbhogade
    @praveenbhogade 2 роки тому +2

    Nice work Bro!! Thanks for making it so simple.

  • @PTM1008
    @PTM1008 Рік тому

    I already have a role created for Lambda function in IAM console. How to use that role directly?

  • @MrMadmaggot
    @MrMadmaggot 6 місяців тому

    Cool but how do you create a trigger for that Lambda?

    • @RahulWagh
      @RahulWagh  6 місяців тому

      You can create a trigger it is upto you how you wanna implement it

  • @aaronholt6595
    @aaronholt6595 Рік тому

    really useful and well explained. Have you any advice or pointers on how to include non-default libraries in the zip file? thanks again

  • @parames3039
    @parames3039 2 роки тому

    I have a one question how to create blue green deployment using lambda function with ansible scripts

  • @2mahender
    @2mahender 2 роки тому

    can i just execite just lambda in terraform with actually creating it?

  • @AriKhuu
    @AriKhuu Рік тому

    Thank you.

  • @gabrielmartinphilot980
    @gabrielmartinphilot980 5 місяців тому

    still working!
    Pretty easy to add layers and the policy to write files to s3!
    Thanks very much for sharing it.

  • @AshishKumar-dl2mc
    @AshishKumar-dl2mc 2 роки тому

    Can you make video for doing crud operation of IAM user into Dynamodb using flask framework and deploy that flask app using api gateway, lambda, dynmodb

  • @kartikeyasingh2798
    @kartikeyasingh2798 Рік тому

    Its great 😃👍

  • @tatajsr13
    @tatajsr13 Рік тому

    Why are you using lambda source in Terraform? This is not practical solution, we need to refer actual zip file from source version control systems like Azure, GitHub etc where the actual zip file will be build. Please let us know how to do that.

  • @hemantpharande2567
    @hemantpharande2567 2 роки тому

    how to search path of /.aws/credential file?
    1. in our personal windows laptop
    2. in our aws ec2 machine with amazonlinux2 os

  • @veeranarayanaganji5293
    @veeranarayanaganji5293 Рік тому +1

    can i get the code repo git link

    • @RahulWagh
      @RahulWagh  Рік тому

      Here is the git repo link - github.com/rahulwagh/Terraform-Topics/tree/master/aws-lambda
      Please hit a star button on github repo link if you really liked the content

  • @AriKhuu
    @AriKhuu Рік тому

    thank you

    • @RahulWagh
      @RahulWagh  Рік тому

      Welcome

    • @AriKhuu
      @AriKhuu Рік тому

      @@RahulWagh Do you have a tutorial for terraform to spin up an ECS fargate?

  • @mimathew1
    @mimathew1 7 місяців тому

    How to add lambda test events in terraform?

    • @RahulWagh
      @RahulWagh  7 місяців тому

      You should use aws_lambda_function_event_invoke_config here is the link for the reference- registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function_event_invoke_config

  • @olanrewajubakare451
    @olanrewajubakare451 2 роки тому

    Great video rahul. Could you please paste the link to the github repo. I can't see it on the comment section. thank you

    • @RahulWagh
      @RahulWagh  2 роки тому

      Here it is - github.com/rahulwagh/Terraform-Topics/tree/master/aws-lambda

  • @rajashekarvt3799
    @rajashekarvt3799 Рік тому

  • @tejushreyas7967
    @tejushreyas7967 17 днів тому

    sir is there any way we can upload only zip file to lambda , please anyone help me

    • @RahulWagh
      @RahulWagh  16 днів тому

      Yes you can upload the zip

  • @sahadevdahit
    @sahadevdahit 7 місяців тому

    ❤❤❤❤❤❤

  • @ZachariBarnes
    @ZachariBarnes Рік тому

    Repo link?

  • @kamkum2k
    @kamkum2k Рік тому

  • @prashantsukhadeve9642
    @prashantsukhadeve9642 2 роки тому

    Good evening Rahul

  • @2mahender
    @2mahender Рік тому

    can i get source code of this

    • @RahulWagh
      @RahulWagh  Рік тому

      Here is the code repo for this - github.com/rahulwagh/Terraform-Topics/tree/master/aws-lambda

  • @chuckhughes6090
    @chuckhughes6090 2 роки тому

    Could you please paste the link to the github repo

    • @RahulWagh
      @RahulWagh  2 роки тому

      Here it is - github.com/rahulwagh/Terraform-Topics/tree/master/aws-lambda