hey guys!
I’m getting an error with the following data using the serverless-step-function plugin GitHub - serverless-operations/serverless-step-functions at 0.4.2
{“error”:“States.Runtime”,“cause”:“An error occurred while scheduling the state ‘CreatePhotoDocument’. The provided ARN ‘create’ is invalid.”}
This is part of my YML file
provider:
iamRoleStatements:
- Effect: Allow
Action:
- states:*
Resource: "*"
functions:
create:
handler: handler.create
resize:
handler: handler.resize
stepFunctions:
stateMachines:
photoResizeWatermark:
events:
- http:
path: ''
method: POST
cors: true
definition:
StartAt: CreatePhotoDocument
States:
CreatePhotoDocument:
Type: Task
Resource: create
Next: ResizeThumbAndPreview
ResizeThumbAndPreview:
Type: Task
Resource: resize
End: true
Could you give me a hand on this guys?
Thanks