Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Paws::Credential::None Usage #2

Open
cakirkeMSTS opened this issue Mar 14, 2024 · 0 comments
Open

Missing Paws::Credential::None Usage #2

cakirkeMSTS opened this issue Mar 14, 2024 · 0 comments

Comments

@cakirkeMSTS
Copy link

at current, the module references Paws::Credential::None here

but doesn't use it.

this results in unexpected default behavior with the STS object trying the built in Paws::Credential::ProviderChain and failing.

i tested locally by changing:

has sts => (
    is      => 'ro', 
    isa     => 'Paws::STS', 
    lazy    => 1, 
    default => sub {
        my $self = shift;
        Paws->service('STS', 
            region      => $self->sts_region
        );
    }
);

to:

has sts => (
    is      => 'ro', 
    isa     => 'Paws::STS', 
    lazy    => 1, 
    default => sub {
        my $self = shift;
        Paws->service('STS',
            credentials => Paws::Credential::None->new,
            region      => $self->sts_region
        );
    }
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant