transfer.sh icon indicating copy to clipboard operation
transfer.sh copied to clipboard

update aws credentials build

Open redwarn opened this issue 2 months ago • 2 comments

This PR enhances the AWS configuration logic by introducing support for the AWS default credential provider chain. When accessKey and secretKey are empty, allowing it to automatically load credentials from multiple AWS-supported sources such as:

Environment variables

  • Shared credentials/config files (~/.aws/credentials, ~/.aws/config)
  • EC2/ECS instance roles
  • EKS Pod Identity

This change improves flexibility and simplifies configuration in environments where credentials are already managed by AWS.

Changes

Updated getAwsConfig to use the AWS default credential chain when accessKey or secretKey is not provided. Retains existing behavior (manual static credentials) when both keys are explicitly specified.

redwarn avatar Oct 22 '25 12:10 redwarn