-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
awsutil: add GetCallerIdentity to Create/Rotate (#10)
* awsutil: add GetCallerIdentity to Create/Rotate This adds GetCallerIdentity to CreateAccessKey and RotateKeys. The latter is done simply by passing WithTimeout through to the inner CreateAccessKey on Rotate. As such, both paths are conditional on a non-zero WithTimeout option being given - this is to ensure that we don't try to immediately verify, which is likely to always fail. * awsutil: add some comments, remove exponential backoff This does the following: * Adds some comments for WithTimeout to RotateKeys and CreateAccessKey to explain exactly what these options do. * Removes the exponential backoff. Even with the quadratic-time backoff we're still probably looking at a number of seconds of delay that's probably unnecessary. Retrying every 1s should not generate that much traffic and only need to be necessary for a few retries. * Change WithTimeout to WithValidityCheckTimeout
- Loading branch information
1 parent
29a9a55
commit 8ef7ccd
Showing
4 changed files
with
39 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters