-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
sst deploy exits 0 even when it fails to deploy due to missing AWS credentials #77
Comments
Looking at the code, it looks like there is nothing that checks to see if any of the final Would you accept a PR for this? What do you think the behavior should be, to exit non-zero if any of the stacks failed? Would it be better if this were a flag, e.g. something like |
@smoll Thanks for looking into it. Yeah the non-zero status is the right behavior for sure. We'd appreciate a PR! |
Just a comment, we also had this problem, we worked around with the attached patch: @serverless-stack+cli+0.20.0.patch.zip So if there is no PR yet I could even create it |
If an error is encountered at the cdk synthesizing step, it exits appropriately, though:
There was an error synthesizing your app. error Command failed with exit code 1.
Any ideas why this might be the case? I'm trying to write a deploy script and I'd like for SST to properly exit non-zero when it fails to deploy.
The text was updated successfully, but these errors were encountered: