Skip to content

Create a role and assume it right away with NewRoleExistsWaiter #2127

Answered by gforien
gforien asked this question in Q&A
Discussion options

You must be logged in to vote

I ended up using my own waiter.

If you encounter the same problem, it's fairly simple to use the underlying ComputeDelay() method from smithy-go, which provides the exponential backoff with jitter that you need. Here is an example. I waited on method CredentialsCache.Retrieve. I did not use CredentialsCacheOptions.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@gforien
Comment options

Comment options

You must be logged in to vote
1 reply
@gforien
Comment options

Answer selected by gforien
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants