Signer::AWSv4::EKS - Generate tokens for logging in to EKS Kubernetes clusters
use Signer::AWSv4::EKS; my $signer = Signer::AWSv4::EKS->new( access_key => 'AKIAIOSFODNN7EXAMPLE', secret_key => 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY', cluster_id => 'eks_cluster_name', ); my $token = $signer->signed_qstring;
Generate tokens for logging in to EKS Kubernetes clusters. This implements the same algorithm that the Heptio autheticator does. https://github.com/kubernetes-sigs/aws-iam-authenticator
This module adds one required attributee in the constructor for obtaining a token
The name of the EKS cluster in AWS
The authentication token to be passed to the Kubernetes cluster (via Authorization header or kubectl --token)
This wraps the token in the appropiate JSON output for using the token as kubectl pluggable authentication module
https://github.com/kubernetes-sigs/aws-iam-authenticator
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.