Skip to content
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

Error: Authentication Failed Returns Status Code 0 #364

Open
larahroth opened this issue Sep 22, 2022 · 0 comments
Open

Error: Authentication Failed Returns Status Code 0 #364

larahroth opened this issue Sep 22, 2022 · 0 comments

Comments

@larahroth
Copy link

Hello,

We are deploying via a bash script calling npx tf-next deploy --endpoint ${OUR ENDPOINT HERE}. Should our credentials not be set, or any other reason, the return status code is 0. This is the same behavior upon success.

Creds Set:

./deploy.sh         
+ npx tf-next deploy --endpoint https://**.execute-api.us-east-1.amazonaws.com
milliVolt CLI 1.0.0-canary.5

success Deployment package uploaded
success Deployment ready
> Available at: *** (copied to clipboard) 
+ echo return code: 0
return code: 0

Creds Not Set:

./deploy.sh                   
+ npx tf-next deploy --endpoint https://**.execute-api.us-east-1.amazonaws.com
milliVolt CLI 1.0.0-canary.5

Error: Authentication failed.
Make sure that the AWS user has the correct permissions.
Could not upload deployment package.
+ echo return code: 0
return code: 0

This has caused a bit of upset with our CI/CD integration and took time to debug. Is there any way to return a different status code on Authentication Failed?

Thank you in advance :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant