Signer::AWSv4::RDS - Generate tokens for signing into MySQL/Aurora RDS servers with IAM credentials
use Signer::AWSv4::RDS; $pass_gen = Signer::AWSv4::RDS->new( access_key => 'AKIAIOSFODNN7EXAMPLE', secret_key => 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY', session_token => 'EXAMPLESESSIONTOKEN', # Required if using temporary security credentials. host => 'MyRDSEndpoint', user => 'iam_user', region => 'us-east-1', ); my $password = $pass_gen->signed_qstring;
Generate tokens for signing into MySQL/Aurora RDS servers with IAM credentials. You can find details of the process in https://www.capside.com/es/labs/rds-aurora-database-with-iam-authentication/.
This module adds two required attributes in the constructor for obtaining a token (to be used as a MySQL password):
The AWS RDS instance endpoint
The user of the MySQL database
The port the database is running on. Defaults to 3306.
This has to be used as the password for the MySQL Server. Please note that all of this needs extra setup: correctly configuring your AWS environment AND your MySQL Client.
https://github.com/pplu/perl-rds-iam-authentication
The source code is located here: https://github.com/pplu/AWSv4Signer
Please report bugs to: https://github.com/pplu/AWSv4Signer/issues
Jose Luis Martinez pplusdomain@gmail.com
Copyright (c) 2018 by Jose Luis Martinez
This code is distributed under the Apache 2 License. The full text of the license can be found in the LICENSE file included with this module.
To install Signer::AWSv4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Signer::AWSv4
CPAN shell
perl -MCPAN -e shell install Signer::AWSv4
For more information on module installation, please visit the detailed CPAN module installation guide.