Paws::Credential::ECSContainerProfile
use Paws::Credential::ECSContainerProfile; my $paws = Paws->new(config => { credentials => Paws::Credential::ECSContainerProfile->new( metadata_url => 'http://localhost:8000/security-credentials', timeout => 5, ) });
The InstanceProfile credential provider is used to call retrieve AWS credentials from conatiners running on AWS ECS
When running in an ECS Container on AWS, if said container has a Role attached to it, Paws can retrieve short-term credentials (and refresh them when needed) from the AWS provided "metadata service".
The url where credentials will be retrieved. Defaults to documented endpoint for container profile retrieval. Should not normally need to be overriden.
Number of seconds to wait before timinig out a connection to the metadata service. It defaults to 1 second, as the metadata service is almost local, and very fast responding. Note that if set too high, and the metadata service is not present (not running on an AWS instance), the connection has to time out
A user agent that has a get method. Defaults to HTTP::Tiny
get
To install Paws::SDK::Config, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws::SDK::Config
CPAN shell
perl -MCPAN -e shell install Paws::SDK::Config
For more information on module installation, please visit the detailed CPAN module installation guide.