Reputation: 1047
I'm using CloudFormation to create lambda resources and I have several python scripts as well as one js script in a lambda-resources
folder. Would it be okay to pass the same file location for every lambda function and just specify unique handlers? When my lambda function is created it looks like it only creates one lambda function.
Upvotes: 2
Views: 2014
Reputation: 16806
Yes, this is definitely one way to accomplish what you're looking to do.
You'll need to create a zipped version of your lambda-resources
folder and upload it via the Lambda service or even to S3, then reference it as the file location for each Lambda function.
Upvotes: 3