I did not have python 2.7 in option so tried with 3.7 but it didnot trigger when i remove the tag from ec2
did not work for me either
The print statements are in python 2 format and are causing a syntax error.
The cloudwatch logs show:
[ERROR] Runtime.UserCodeSyntaxError: Syntax error in module 'lambda_function': Missing parentheses in call to 'print'. Did you mean print(shuttingDown)? (lambda_function.py....
To fix add parenthesis to the print statement
print("shuttingDown") else: print("Nothing to see here")