Hi,
I have created a policy document as .yaml file and it works very well when i execute from command line
custodian run -c my_first_polict.yaml -s /home/ec2-user/custodian/output -r us-west-2
Howvever i want to run this as a lambda function with below addition
mode:
type: periodic
schedule: "rate(1 hour)"
role: lambda_start_stop_role
When i try to execute it lambda log say as below
{
"errorMessage": "Syntax error in module 'lambda_function'"
}
Could you please advice how could i execute this as a lambda func? ( it supports only python, node.js and java )