Paws::Credential::File
use Paws::Credential::File; my $paws = Paws->new(config => { credentials => Paws::Credential::File->new( profile => 'profile1', credentials_file => '/etc/aws_system_credentials', ) }); # will open /etc/aws_system_credentials my $paws = Paws->new(config => { credentials => Paws::Credential::File->new( profile => 'profile1', file_name => 'my_creds', ) }); # will open $HOME/.aws/my_creds my $paws = Paws->new(config => { credentials => Paws::Credential::File->new( profile => 'profile1', path => '/etc/', ) }); # will open /etc/credentials
The File credential provider is to read credentials from AWS SDK config files
The section in the ini file where credentials will be looked up:
Defaults to the environment variable AWS_DEFAULT_PROFILE, and if that is not defined, to "default"
AWS_DEFAULT_PROFILE
The path of the ini file to open
Defaults to the path + file_name ($HOME/.aws/credentials by default) if the environment variable AWS_CONFIG_FILE doesn't exist
$HOME/.aws/credentials
Path to the ini file
Defaults to $HOME/.aws
$HOME/.aws
Name of the ini file
Defaults to credentials
credentials
To install Paws, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws
CPAN shell
perl -MCPAN -e shell install Paws
For more information on module installation, please visit the detailed CPAN module installation guide.