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

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

КОМЕНТАРІ • 33

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

    Thanks for explaining very nicely 🙏👍

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

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

  • @saychaan7438
    @saychaan7438 8 місяців тому +1

    nice video bro keep it up dont stop uploading

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

    Informative 👍

  • @mdiqbal5821
    @mdiqbal5821 Місяць тому

    Nice video man...please help us more

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

    very good explanation

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

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

    • @user-su8wj4ey3x
      @user-su8wj4ey3x Рік тому

      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 Рік тому

      @@user-su8wj4ey3x
      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

  • @bhadrafriends9788
    @bhadrafriends9788 Місяць тому

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

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

    Many thanks.. It worked..

  • @SidikAlam-vp5fk
    @SidikAlam-vp5fk 27 днів тому

    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.

  • @gopalrathod262
    @gopalrathod262 9 місяців тому +1

    thanks bro

  • @gauravchoudhary3733
    @gauravchoudhary3733 4 місяці тому

    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?

    • @user-mr5lx9hu7t
      @user-mr5lx9hu7t 4 місяці тому

      now cw rule now added into the EventBridge

  • @user-su8wj4ey3x
    @user-su8wj4ey3x Рік тому

    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

  • @user-mr5lx9hu7t
    @user-mr5lx9hu7t 4 місяці тому

    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

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

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

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

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

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

      @@CloudPaathshala it is good now

  • @karthiK-rg6fh
    @karthiK-rg6fh 11 місяців тому

    Hi how to monitor performance and availablity of ec2

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

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

  • @arunkumar-zz7tn
    @arunkumar-zz7tn 10 місяців тому

    For monthly cost should be??

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

      monthly cost of any particular resource?

  • @sanketpawar9686
    @sanketpawar9686 4 місяці тому

    when it start again

  • @SorowerHossan-kf6qp
    @SorowerHossan-kf6qp 7 місяців тому

    This is good stuff..

  • @zdroweodzywianie9107
    @zdroweodzywianie9107 5 місяців тому +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 2 місяці тому

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

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

    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 4 місяці тому

    Thanks