-
Notifications
You must be signed in to change notification settings - Fork 220
feat: asl validation #245
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
feat: asl validation #245
Conversation
|
I agree that the validation should be done automatically. Is there any reason why it shouldn't be enabled by default? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No special reason, maybe we can start like this as a "beta" and turn it on by default in a month or so? |
|
@ChristopheBougere ok, no worries, can leave it as is so we're backward compatible @horike37 this looks good from my perspective, can you have a look? |
|
@ChristopheBougere @theburningmonk What do you think? |
|
@horike37 I agree that it would be nice to have both possibilities. Meaning that the variable |
|
@ChristopheBougere |
|
@ChristopheBougere |
|
@horike37 done 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChristopheBougere
Thank you for the updates 👍 LGTM.
|
🎉 This PR is included in version 2.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…sl-validator feat: asl validation
Replaces #90
This PR adds pre-deployment definition validation using asl-validator. The latter now supports intrinsic CF functions, which removes the need for serverless-pseudo-parameters support.
In contrast to #90 which adds a new command (
sls validate stepf), here we automatically validate the state machine definitions during the deploy step. The main benefit is to avoid uploading and updating CloudFormation stack in order to detect and fix typos, so it can save some time when developing.The feature is disabled by default, and can be enabled with a boolean:
I think this behaviour is better than the one in #90, but I'm happy to discuss it and revert it.
AFAIK it's working pretty well, but I haven't tested all the new step functions capabilities and associated services so please open issues/PR here if you experience issues.