I'm trying to deploy a lambda function to AWS using CloudFormation. My problem is that for the code section I want to give a local file rather than a s3 bucket. This is what I have at the moment.
getStores:
Type: AWS::Lambda::Function
Properties:
Handler: index.get
Role: !GetAtt SyncGalaxyLambdaRole.Arn
Code:
ZipFile:
Fn::Join:
- "\n"
- - exports.get = function(event, context) {
- " console.log('hello world!');"
- "};"
Runtime: nodejs6.10
Now for the Code section I want to give the contents of a local file generated through webpack. How do I do this?