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:)
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.
contact us online classroom training's & project support please contact phone number +919886611117
Really very good video must watch thanks a lot :)
Thanks Viresh
Ur videos are really helpful sir pls continue posting new videos on boto3 .... Hoping to learn a lot from you
exactly what have been looking for , thank you so much
Thanks for the video, you explained it so well. Thanks.
please make more videos on aws lambda using spring boot with real time example.thanks
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:)
Thank you :-)
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!'
thanks bhai
apka code le kar tab sucess ho gya
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?
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'
solve it this error
Name: Type and Value:Scheduled is correct
How to use the same function to work with Custom VPC with 1PubSN and 2PrivSN?
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.
yes same issue for me
Hi Is this available on your udemy courses? thanks
works with only one instance
does not start the instance what happenened pl say me
Make sure your instance has a tag with Name: Type and Value:Scheduled
I got Success from Lambda, but Instance didn't Start, Could you help me
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?