AWS Lambda : run EC2 instances in schedule using python

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

КОМЕНТАРІ • 25

  • @JavaHomeCloud
    @JavaHomeCloud  5 років тому

    contact us online classroom training's & project support please contact phone number +919886611117

  • @vireshsaini705
    @vireshsaini705 5 років тому +3

    Really very good video must watch thanks a lot :)

  • @murugesanv3558
    @murugesanv3558 6 років тому +2

    Ur videos are really helpful sir pls continue posting new videos on boto3 .... Hoping to learn a lot from you

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

    exactly what have been looking for , thank you so much

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

    Thanks for the video, you explained it so well. Thanks.

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

    please make more videos on aws lambda using spring boot with real time example.thanks

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

    Thanks for the explanation, you just explained it so well. I was finding this solution from the last 2 days & shit I got it from this video. liked & subscribed:)

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

    import boto3
    ec2 = boto3.resource('ec2')
    def lambda_handler(event, context):
    filter = [
    {
    'Name': 'tag:Type',
    'Values':['Scheduled']
    }
    ]
    instances = ec2.instances.filter(Filters=filter)
    for instance in instances:
    instance.start()
    return 'Success!'

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

    I have already seen these videos in a platform called Cloud Guru . And I have a question it's just a coincidence or on purpose?

  • @muddasserafanmohammed8556
    @muddasserafanmohammed8556 5 років тому

    Getting below error
    {
    "errorMessage": "Parameter validation failed:
    Invalid type for parameter Filters, value: , type: , valid types: , ",
    "errorType": "ParamValidationError",
    Code:
    import boto3
    ec2 = boto3.resource('ec2')
    def lambda_handler(event, context):
    fliter = [
    {
    'Name': 'tag:Type',
    'Values': [ 'Scheduled' ]
    }
    ]
    instances = ec2.instances.filter(Filters=filter)
    for instance in instances:
    instance.start()
    return 'Success'

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

    Name: Type and Value:Scheduled is correct

  • @hasifkhan8197
    @hasifkhan8197 6 років тому

    How to use the same function to work with Custom VPC with 1PubSN and 2PrivSN?

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

    I got success from Lambda but it doesn't have any effect on the EC2 instances. I don't know how were you able to start the instance if stopped or stop the instance if started. Some others also faced the same issue.

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

    Hi Is this available on your udemy courses? thanks

  • @rajanvashisht6158
    @rajanvashisht6158 5 років тому

    works with only one instance

  • @k.r.mohanreddyk.r2350
    @k.r.mohanreddyk.r2350 6 років тому

    does not start the instance what happenened pl say me

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

    I got Success from Lambda, but Instance didn't Start, Could you help me

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

      I also have same issue, got success from lambda but it's not having any effect on the EC2 instances. Did you figure it out?