aws-sdk-js-v3
aws-sdk-js-v3 copied to clipboard
fix(ec2): handle unauthorized exception
Issue
Issue number, if available, prefixed with "#"
Description
What does this implement/fix? Explain your changes.
Set FAILURE state if we doesn't have access for operation
Testing
How was this change tested?
- Create access key for user which doesn't have any access
- Run waitUntilInstanceRunning function
- Got timeout, because always retry status
Additional context
Add any other context about the PR here.
Checklist
- [ ] If you wrote E2E tests, are they resilient to concurrent I/O?
- [ ] If adding new public functions, did you add the
@publictag and enable doc generation on the package?
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.