Im hoping someone can point me in the right direction as I am having no luck with my deployment.
I have a step function that involves 2 lambdas.
It is written in typescript.
When i package my deployment, it returns no errors, but the dependancies are not present in the .zip files, and when i try to run the step function it fails as it cant find the dependancies.
Im not sure what im missing here:
service: wb-wf-aws-sls
provider:
name: aws
runtime: nodejs12.x
stage: dev
region: us-east-1
environment:
<redacted>
plugins:
- serverless-webpack
- serverless-step-functions
package:
individually: true
excludeDevDependencies: false
functions:
createJob:
name: createJob
description: 'Parses csv and creates job'
handler: src/handler.createJobHandler
geocodeOffsetMeters:
name: geocodeOffsetMeters
description: 'Parses csv and creates job'
handler: src/handler.geocodeAndOffsetMetersHandler
stepFunctions:
stateMachines:
wb-wf-aws-sls:
#Triggers start of the process
name: CreateJob
events:
- s3:
bucket: csv-wf-test
event: s3:ObjectCreated:*
definition:
StartAt: createJob
States:
createJob:
Type: Task
Resource:
Fn::GetAtt: ["createJob", "Arn"]
InputPath: '$.data'
OutputPath: '$.data'
Next: CheckCompleted
CheckCompleted:
Type: Choice
Choices:
- Variable: '$.done'
BooleanEquals: true
Next: Complete
- Variable: '$.done'
BooleanEquals: false
Next: GeocodeOffSetMeters
GeocodeOffSetMeters:
Type: Task
Resource:
Fn::GetAtt: ["geocodeOffsetMeters", "Arn"]
InputPath: '$.data'
OutputPath: '$.data'
Next: CheckCompleted
Complete:
Type: Succeed
Any help would be greatly appreciated.
Thanks