How to start and stop instances using lambda and Cloudwatch

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

КОМЕНТАРІ • 30

  • @Zghanem000
    @Zghanem000 3 роки тому +4

    I have never commented on youtube, but your sincerity well deserved

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

    really its superb and informative video...Thank you so much

  • @pandya124
    @pandya124 4 роки тому +1

    Simple and clear. you saved my lot of search work. Kudos for you .

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

    amazing video tutorial. Thank u profoser

  • @satya4866
    @satya4866 4 роки тому

    Nice one. Keep posting real time uses with multiple AWS services involved. Thanks

  • @nikhilprabhu3389
    @nikhilprabhu3389 3 роки тому

    This is very well explained. What if incase of stopping instances in multiple regions?

  • @tommyguns2012
    @tommyguns2012 3 роки тому

    Dude! this saved me a lot of time! Thank you for sharing! much appreciated!

  • @akashmurali3019
    @akashmurali3019 3 роки тому

    Clearly explained sir thank u

  • @mallikarjunareddy6048
    @mallikarjunareddy6048 3 роки тому

    Excellent video. thanks

  • @mindcoder4823
    @mindcoder4823 3 роки тому

    What about if you want to incorporate some lines of code that would check if the instance is running, don't do anything, but if it is stopped, start it and stop it at a given time? Where in your script can you add that logic?

  • @hpksoldati
    @hpksoldati 4 роки тому

    Good job! Keeps working perfectly!

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

    Nice video sir!! But what if my instances are in ASG ?

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

    Instead if hardcode instance ids.. Any way to get them using tags

  • @sshussaintech
    @sshussaintech 4 роки тому

    Excellent video and nice explanation

  • @bhanupratap4303
    @bhanupratap4303 4 роки тому

    that was awesome explanation. Good job bro, keep posting

  • @multitaskprueba1
    @multitaskprueba1 3 роки тому

    You are a genius! Thank you!

  • @lichieluvs
    @lichieluvs 4 роки тому

    How do we check whether the instance is stopped before executing the stop instance?

  • @kalyankalapala8940
    @kalyankalapala8940 3 роки тому

    so how to do this if I want 50 instances to start and stop (it is not a good idea to mention all the instance ID in the lambda function) instead of one or two ?? Please help me ...

    • @GovindharajanKaushik
      @GovindharajanKaushik 3 роки тому

      You can tag the instances you want to schedule using the 'Tags' option. Once you give all the instances you want the same tag, implement the code linked here:
      ua-cam.com/video/bv-CKOMPCpI/v-deo.html

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

    What does the "import boto3 " stand for or do in this code

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

      I found this:
      "Boto3 is the name of the Python SDK for AWS. It allows you to directly create, update, and delete AWS resources from your Python scripts."
      Posting for other users whom might need clarity on this too

  • @nbhaskarreddy7071
    @nbhaskarreddy7071 4 роки тому

    excellent video

  • @Birendravideos
    @Birendravideos 3 роки тому

    Thanks lot bro

  • @fadi07full
    @fadi07full 4 роки тому

    liked subscribed and shared :)

  • @DeepakKumar-tg1qi
    @DeepakKumar-tg1qi 3 роки тому

    I am getting error tasked time out afet 3 sec how please help someone

    • @mindcoder4823
      @mindcoder4823 3 роки тому

      Go to configuration in Lambda function and hit on edit, then you can increase the time to 15 seconds or even more.

  • @mazharmiya123
    @mazharmiya123 3 роки тому

    ERRO
    FOUND WHILE TESTING
    Response:
    {
    "statusCode": 200,
    "body": "\"Hello from Lambda!\""
    }
    Request ID:
    "59370eda-3249-4ba4-a945-807d406d796b"
    Function logs:
    START RequestId: 59370eda-3249-4ba4-a945-807d406d796b Version: $LATEST
    END RequestId: 59370eda-3249-4ba4-a945-807d406d796b
    REPORT RequestId: 59370eda-3249-4ba4-a945-807d406d796b Duration: 1.45 ms Billed Duration: 2 ms Memory Size: 128 MB Max Memory Used: 48 MB

    • @mazharmiya123
      @mazharmiya123 3 роки тому

      CAN I GET YOUR MOBILE NO

    • @karthika.v.3194
      @karthika.v.3194 2 роки тому

      @@mazharmiya123 Deploy the code and then test it, it will work