Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Python Code error #35

Open
iankittomar opened this issue Jul 10, 2019 · 1 comment
Open

Python Code error #35

iankittomar opened this issue Jul 10, 2019 · 1 comment

Comments

@iankittomar
Copy link

I have followed your steps found a couple of problems.

1.) while running this command aws lambda create-function --function-name ddns_lambda --runtime python2.7 --role <enter-your-role-arn-here> --handler union.lambda_handler --timeout 30 --zip-file fileb://<LOCAL PATH>/union.py.zip there is no union.py.zip file
2.) python code error, Please reffer screenshort

2019-07-10 12_33_09-Window

@vikten22
Copy link

vikten22 commented Sep 9, 2019

@iankittomar The lambda function union.py will get required values from the event.

For example: when you launch an instance the event will be triggered for running instance state and executes lambda function for those instance details. Or you can pass event data manually and run the function.

When you run this lambda without values, you will get into this error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants