-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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: Add support for the FailOnWarnings
property on AWS::Serverless::Api
#2417
Conversation
FailOnWarnings
propertyFailOnWarnings
property on AWS::Serverless::Api
Codecov Report
@@ Coverage Diff @@
## develop #2417 +/- ##
===========================================
+ Coverage 93.58% 94.44% +0.85%
===========================================
Files 90 98 +8
Lines 6124 7269 +1145
Branches 1260 1512 +252
===========================================
+ Hits 5731 6865 +1134
- Misses 183 195 +12
+ Partials 210 209 -1
Continue to review full report at Codecov.
|
Hi @nialdaly, thank you for submitting a pull request! Can you please add unit and integration tests to your PR so that we can validate these changes and guard against regressions in the future. |
No problem! @mildaniel Sorry I forgot to put a comment here. I'm unsure on how to generate an API creation warning to ensure that the rollback occurs with |
@nialdaly, sorry I don't quite get what you mean. If you want to make sure a stack/API gets rollback due to "FailOnWarnings: true", this has to been done when the stack is being deployed. SAM Transform happens before the stack is deployed. |
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.
Overall LGTM. Just one comment. And thanks for your contribution!
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.
Thanks for your contribution, looks good to me as well!
Issue
Description of changes:
Description of how you validated changes:
Checklist:
make pr
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.