transfer.sh
transfer.sh copied to clipboard
update aws credentials build
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.