WebService::Amazon::IAM - basic Amazon IAM role functionality
version 0.002
Coming soon.
Retrieves a list of the active roles in this AWS instance.
Currently only one role is supported per server (!), so this will just resolve to a single string.
is($iam->active_roles->get, 'some_role_name');
Resolves to the credentials for the given role.
my $creds = $iam->credentials_for_role('some_role'); say "Access key: " . $creds->{access_key}; say "Secret key: " . $creds->{secret_key}; say "Token: " . $creds->{token}; say "Will expire at " . strftime '%Y-%m-%d %H:%M:%S', localtime $creds->{expiry};
Tom Molesworth <cpan@perlsite.co.uk>
Copyright Tom Molesworth 2014. Licensed under the same terms as Perl itself.
To install WebService::Amazon::IAM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Amazon::IAM
CPAN shell
perl -MCPAN -e shell install WebService::Amazon::IAM
For more information on module installation, please visit the detailed CPAN module installation guide.