Open njlynch opened 2 years ago
Not able to reproduce the issue either with python3.6 or 3.7. In both cases sample is working fine for both consumer and producer lambda functions. I tried with CDK version - 2.60.0 (build 2d40d77), did not check with the older version of CDK.
Created on behalf of @dmitriierkineroad from https://github.com/aws/aws-cdk/issues/18088
What is the problem?
For this example https://github.com/aws-samples/aws-cdk-examples/tree/master/python/dynamodb-lambda sam fails to run the consumer lambda function:
...
Reproduction Steps
What did you expect to happen?
I expected step 7. sam build --template-file ./cdk.out/dynamodb-lambda.template.json to copy ./cdk.out/asset.de3b9cf558a0778ce41c0deffcc7f5ae1209ae47d9b4a99b9668294ae095d8dc to ./.aws-sam/build/ because step 8. sam local start-lambda tries to mount this sub-folder:
What actually happened?
step 7. sam build --template-file ./cdk.out/dynamodb-lambda.template.json created sub-folder /.aws-sam/build/consumerlambdafunction40710347 for the consumer lambda function, which step 8. sam local start-lambda doesn't try to mount.
CDK CLI Version
2.2.0 (build 4f5c27c)
Framework Version
No response
Node.js Version
v14.18.2
OS
Ubuntu 20.04
Language
Python
Language Version
No response
Other information
Created from https://github.com/aws/aws-cdk/issues/18088