Automate Start-Stop EC2 Instances Using Lambda - Step-by-Step Guide

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 35

  • @malikvlogs9013
    @malikvlogs9013 7 днів тому

    GREAT VIDEO

  • @Guitar-Geek
    @Guitar-Geek Рік тому +3

    many many many step-by-step and only tours worked perfectly fine.

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

    nice video bro keep it up dont stop uploading

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

    This is very informative . i tried and it works fine.
    thank you :)🙂

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

      Hi
      Please can you give an insight on how you edited the Lambda function code?I can't copy and paste code. Showing i should use cloud9.

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

      @@JosephOfobuike
      Just copy from aws official document of python script for lambda function and try 1 st with deploy and then test

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

      you can use lambda code generator from aws console itself

  • @zdroweodzywianie9107
    @zdroweodzywianie9107 10 місяців тому +1

    Hey I get an error:
    Response
    {
    "errorMessage": "2024-03-14T10:32:34.778Z c8640d39-6d77-4df5-8a9d-ea41a6db2300 Task timed out after 3.01 seconds"
    }
    what I could do wrong?

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

      Try going to configuration of the lambda function and increasing the timeout. It worked for me

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

    Thanks for explaining very nicely 🙏👍

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

    Informative 👍

  • @SidikAlam-vp5fk
    @SidikAlam-vp5fk 5 місяців тому

    Using this process in aws and set a bot on every minute start and stop ec2 instances and give particular ip when this particular ip come then i stop
    I requested please give me instructions.

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

    What is the code to add other regions as well in same lambda function

  • @NandkishorBobade-o4s
    @NandkishorBobade-o4s 8 місяців тому

    Hi am trying to stop and start 3 ec2 its giving error of client error instance id is malformed. But its working for single ec2. Please how to solve this

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

    instead of using cloudwatch, we can use eventbridge scheduler, by setting up the rate based timing schedule, to invoke the lambda function to turn on and off the EC2 instances right?

  • @SorowerHossan-kf6qp
    @SorowerHossan-kf6qp Рік тому

    This is good stuff..

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

    very good explanation

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

    the best!

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

    Many thanks.. It worked..

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

    Hi
    Easy to follow and understand tutorial. Looks like one can't copy and paste code on Lambda anymore as you did on this tutorial. It showing i should use AWS cloud 9 to edit lambda function code.

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

      you can use code generator for same and write required code

  • @LazyTurtle587
    @LazyTurtle587 11 місяців тому

    Do you have to create 2 functions 2 rules for both start & stop ? Waiting for your valuable response..

    • @CloudPaathshala
      @CloudPaathshala  11 місяців тому +1

      Yes you can create 2 functions and 1 function is also enough where we can include other required rule as well.

    • @LazyTurtle587
      @LazyTurtle587 11 місяців тому

      @@CloudPaathshala it is good now

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

    Nice video man...please help us more

  • @karthiK-rg6fh
    @karthiK-rg6fh Рік тому

    Hi how to monitor performance and availablity of ec2

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

      by using cloudwatch, you can watch my video on cloudwatch to monitor ec2

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

    thanks bro

  • @arunkumar-zz7tn
    @arunkumar-zz7tn Рік тому

    For monthly cost should be??

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

    when it start again

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

    For some reason it's not working for me, it gives me this message: Please Help
    [ERROR] NameError: name 'region_name' is not defined
    Traceback (most recent call last):
    File "/var/lang/lib/python3.12/importlib/__init__.py", line 90, in import_module

  • @KD-wp6cm
    @KD-wp6cm 9 місяців тому

    Thanks