Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
NicholasACTran opened this issue Sep 14, 2022 · 2 comments

Comments

@NicholasACTran
Copy link

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?

@alfonso-jimenez-evelyn
Copy link

I have the same issue, did you solve this problem?

@lmanerich
Copy link

lmanerich commented May 21, 2023

Even is just a warning, the step function is not deployed.

A workaround is available at:
#177 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants