aws-sdk-perl icon indicating copy to clipboard operation
aws-sdk-perl copied to clipboard

Paws::Credential::File incorrectly uses AWS_CONFIG_FILE instead of AWS_SHARED_CREDENTIALS_FILE

Open melutovich opened this issue 1 year ago • 0 comments

existing code is:

has credentials_file => (is => 'ro', lazy => 1, default => sub { my $self = shift; if (defined $ENV{AWS_CONFIG_FILE}){ return $ENV{AWS_CONFIG_FILE}; } else { return $self->path . '/' . $self->file_name; } });

I believe this should be:

has credentials_file => (is => 'ro', lazy => 1, default => sub { my $self = shift; if (defined $ENV{AWS_SHARED_CREDENTIALS_FILE}){ return $ENV{AWS_SHARED_CREDENTIALS_FILE}; } else { return $self->path . '/' . $self->file_name; } });

Based on what I see in: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html

melutovich avatar Sep 06 '23 21:09 melutovich