How to deploy Cloud custodian policy as lambda function

1,056 views
Skip to first unread message

Vijay Ramalingam

unread,
Dec 26, 2016, 11:02:08 PM12/26/16
to cloud-custodian

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 )

Kapil Thangavelu

unread,
Dec 27, 2016, 6:35:51 AM12/27/16
to cloud-custodian


i noticed you filed the same question as a github issue. i'd prefer to discuss there.

Vijay Ramalingam

unread,
Dec 27, 2016, 10:51:31 AM12/27/16
to cloud-custodian
yes, i will close this
Reply all
Reply to author
Forward
0 new messages