Skip to content

Bug Report: Separating the State Function into a separate file causes Configuration warning: at 'stepFunctions': should be object #527

Open
@NicholasACTran

Description

@NicholasACTran

This is a (Bug Report / Feature Proposal)

Description

I've attempted to separate out my step functions into a separate yml file in order to make the serverless yml easier to read and maintain. I've used the standard convention that works with other plugins:

stepFunctions:
  - ${file(resources/stateMachine1.yml)}
  - ${file(resources/stateMachine2.yml)}

with those individual ymls being in the format:

stateMachines:
  stateMachine1:
   ...

It throws no errors while deploying, but throws a configuration warning. The expectation from other plugins and how the standard serverless.yml file handles this is that the individual files should be inserted into the original serverless.yml file during deployment. Is there work to make this work, or is there another method to approach this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions