Closed grayaii closed 7 years ago
OK. I figured it out. You have to cd in to src and do everything from there. The conf file cannot live outside of src, otherwise, the lambda function cannot find it. I'll create a PR to update the documentation.
I believe , if this function has been created from cloud formation, then in handler you might have given index.lambda_handler so either change the lambda_function.py to index.py or change vice versa in cloudformation.
I am trying this out for the first time. Here is what I did (after setting up all the IAM roles):
I then go and create a table like so:
After first the error was "bucket does not exist", so I created the bucket. Now that I manually created the bucket, I get this error:
Any idea what could the problem? Maybe it's the way I'm building it? Does it matter which directory I build it from?