amzn / smoke-aws-credentials

A library to obtain and assume automatically rotating AWS IAM roles written in the Swift programming language.
Apache License 2.0
19 stars 14 forks source link

Keep on refreshing credentials after failure #9

Closed tachyonics closed 5 years ago

tachyonics commented 5 years ago

Issue #, if available: #7 and #8

Description of changes: Continue to refresh credentials in the future if an refresh attempt fails to avoid never regaining valid credentials in the future. Avoid attempting to use junk credentials.

Testing performed: Added unit tests to verify these additions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.