-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
AWS: Tell S3 bucket name and how to recover if deployment bucket does not exist #5714
Conversation
another great contribution @exoego 🙌 ... thanks a lot for your hard work! 💪 Please let me know if this PR is ready for review, we'd love to see test coverage for this 😊 |
@eahefnawy It's ready 😄 |
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 @exoego .. Just a quick clarification question.
return BbPromise.reject(new this.serverless.classes.Error([ | ||
`The serverless deployment bucket "${params.Bucket}" does not exist.`, | ||
`Create it manually if you want to reuse the CloudFormation stack "${stackName}",`, | ||
'or delete the stack if it is no longer required.', |
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.
@exoego what you mean "delete the stack if it is no longer required"? 🤔
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.
If I understand correctly, sls remove
can not delete the stack of which the deploy bucket is deleted accidentally,
So, if user want to delete the stack which is no longer required, the stack should be manually deleted.
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.
LG2M! Thanks @exoego
Hello, I know this has been closed but I have the same issue when the bucket was deleted and I'm trying to upload the service again. This is the error that I got:
|
What did you implement:
Closes #5699
How did you implement it:
Translate the "The specified bucket does not exist" error into more detailed error containing below:
How can we verify it:
npm i -g exoego/serverless#fix-5699;
sls deploy
anythingsls deploy
Todos:
Is this ready for review?: YES
Is it a breaking change?: NO