Fork me on GitHub
#aws
<
2019-02-16
>
taylor00:02:38

I have a long-running app using aws-api, and it seems like the S3 client (and maybe any other client) needs to be refreshed/recreated periodically. I eventually start getting ExpiredToken errors. I didn’t see anything in the docs about this. Is there guidance for how long I can use the same client?

ghadi01:02:11

are you using latest @taylor? there was a bug in the previous release

taylor01:02:31

maybe not very latest, I’ll upgrade

taylor01:02:51

should I be able to use the same client instance indefinitely though?

ghadi01:02:06

should be yes

ghadi01:02:19

the credentials will refresh in the background, like other clients