Provide session token to credentials
This is a followup to #190, where accessKeyId and secretAccessKey were moved to the credentials object.
The optional sessionToken is also part of credentials object in AWS SDK v3.
Fixes The AWS Access Key Id you provided does not exist in our records. error when using session token from STS service.
@lukemelia 👋, can you please take a look?
Hello @lukemelia,
can this please be merged?
Without this, using STS for credentials is completely broken, which is a significant issue if we want to follow best security practices and move away from using IAM users.
Thanks.
@lukemelia thank you very much for quick merge!
Would you also release a new version with this fix so we can use it in our project? I've tested the fix and it works as expected.
Thank you!
@lukemelia thanks for merge 🥳, I agree with @IvanVlasic, that this is a bugfix instead of enhancement, because using STS worked well before migration to AWS SDK v3, where the bug was introduced.
Released as v5.0.1.