turborepo-remote-cache
turborepo-remote-cache copied to clipboard
feat | added support for AWS_SESSION_TOKEN
Description
This PR adds support for the AWS_SESSION_TOKEN
variable, which is used when using shortlived AWS IAM credentials. The logic added will only add this variable if the value is defined, otherwise it will be skipped. This should hopefully not cause any issues for installations not using the sessionToken.
I did not find any tests related to connecting to AWS S3 so I wasn't able to improve test coverage; should I try and investigate how to test this particular feature or can I just leave the PR as is?
Docs
Implemented based on these SDK docs.
Hej. Thanks for the PR. It would be nice to test this, but I am unaware too of how we do it. :/
If I have some time in the next weeks I'll see if I can use nock
/ msw
to test the requests the AWS SDK is making and verify the changes are applied.
@wdalmijn can you please fix the conflicts?
@all-contributors add @wdalmijn for code
@wdalmijn I resolved some conflicts, but I have a hunch that the new codebase differed too much from your feature. Could you please check? Also, please update the documentation that you can found here https://github.com/ducktors/turborepo-remote-cache/blob/main/docs/supported-storage-providers.md
Super seeded by https://github.com/ducktors/turborepo-remote-cache/pull/86