Skip to content

Support to separate step functions states into different yml files #538

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
cwardcode opened this issue Dec 22, 2022 · 0 comments
Open

Comments

@cwardcode
Copy link

This is a Feature Proposal

Description

For feature proposals:

  • It is currently possible to create a separate state machine (Support to separate step functions into different yml files #177) within a different file; however, it would be nice to also allow the possibility to split states into their own files as well, so that users do not have to re-define the same functionality multiple times. It does not seem like the plugin supports a similar approach at the state level, though.

I believe the definition may look something like this:

stepFunctions:
  stateMachines:
    mundaneTask:
      name: '${self:provider.stage}-something-repetitive  
      definition:
        Comment: 'Starts a file upload'
        StartAt: repetitiveStep
        States:
          repetitiveStep: ${file(something-repetitive.yml)}

Any feedback or help would be appreciated!

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

1 participant