[BUG] - New version (3.10.1) of the library removes existing state machines.
danguitavinas opened this issue · 8 comments
This is a Bug Report
Description
I deployed my application with some code changes, none of them were applied in the serverless.yml nor in the state machines. After the deployment, all of the state machines already created in previous deployments were deleted by cloudformation. Re-deploying after that does not seem to create them again.
After forcing the version of the library to: 3.10.0 the state machines were successfully re-deployed.
Additional Data
- Serverless Framework Core Version you're using: latest
- The Plugin Version you're using: latest
- Operating System: linux
- Stack Trace: NONE
- Provider Error messages: NONE
@danguitavinas
Thank you for your report. We will take a look.
Hello @danguitavinas , thank you for reporting this. Could you provide your serverless.yml sample for me to re-produce this issue?
Hello @danguitavinas , thank you for reporting this. Could you provide your serverless.yml sample for me to re-produce this issue?
Unfortunately I cannot share the code, it belongs to a private organization.
Several of our services fail to deploy because they reference the id of the state machine - which cannot be resolved by serverless.
The state machine config is in a separate file and it seems, that the current version of the plug-in just doesn't load the config. Validation is not performed, though it ist enabled in the config.
...
resources:
- ${file(sls-cfg-resources/config1.yml)}
- ${file(sls-cfg-resources/config2.yml)}
- ${file(sls-cfg-resources/config3.yml)}
stepFunctions: ${file(sls-cfg-resources/timedOperationStateMachine.yml)}The state machine config is ignored, even when it is defined in the main serverless.yml.
Same issues on my end with v3.10.1. GitHub workflows for state machines are failing with:
Serverless Error ----------------------------------------
The CloudFormation template is invalid: Template format error: Unresolved resource dependencies [***] in the Resources block of the template
Deployments with v3.10.0 were fine last Friday.
Please do rollback to this version 3.10.1 cause deploying with it erase all the stepfunction that was create before
lib/yamlParser.js you have a serious issue here with configurationInput
Thank you all, I just released a new version, 3.11.0 with reverting the change in yamlParser.js.
Thank you all, I just released a new version,
3.11.0with reverting the change in yamlParser.js.
Thank you for the fast response!