On deploying a CDK app that has a lambda function. I need to submit a file called query1.sql that will be executed when the lambda is called. Is it possible to specify which files must be uploaded while deploying the lambda?
CalvinExplainer
Is it possible to specify which files must be uploaded while deploying the lambda?
Share
Yes, you can read the sql file in Python using open() function. Make sure that you have the file in same location as that of lambda.py file.