I am new to serverless framework. I want to deploy my state machine for dev env only not for other env. How can I deploy it stage-specific?. I have tried serverless-plugin-ifelse for deployment but it is not working in the case of state machines. My serverless.yml looks like
serverlessIfElse:
- If: '"${self:custom.currentStage}" == "beta"'
Exclude:
- stepFunctions.stateMachines
stepFunctions:
stateMachines:
pruneIndices:
${file(./handlers/prune-indexes/prune-indexes.yml)}