Provided ARN for resourse is invalid with serverless-step-function

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

my mistake.

this is what I’m needing
Resource: arn:aws:lambda:${opt:region}:${self:custom.accountId}:function:${self:service}-${opt:stage}-hello

Thanks guys!

where is th best place to define step functions ?

a) in the serverless.yml that the client of the step function is ?

b) in the serverless.yml of the stack that contains the step functions (which may not be possible if they exist across a couple of separate stacks)

c) in a separate ‘step-functions’ serverless project altogether. And in here the step functions might use lambdas in many other stacks