Closed AmirHJabari closed 2 years ago
In the AssumeRole security model, the credential expires after a while and should be refreshed. In the usage guide, we have SignalRenew, designed to be called every 5 minutes (which is called upon receiving every http request). That is not the problem.
The problem was that we are caching the AWS Client object in EventBus. It's fixed now.
Olive.Aws/AssumeRole.cs In this class, everything is working as it should but maybe we are using it in the wrong way. When the token is expired I call
SignalRenew()
and this code executes successfully without any problems.But it still gives me a Token Expiration Error for a while maybe an hour. Then it will be fixed for an hour and again the same problem (I'm not sure about the pattern) ... Maybe we should update the token in another way.
@m-sadegh-sh @PaymonK