NAME

Signer::AWSv4::EKS - Generate tokens for logging in to EKS Kubernetes clusters

SYNOPSIS

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;

DESCRIPTION

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

Request Attributes

This module adds one required attributee in the constructor for obtaining a token

cluster_id String

The name of the EKS cluster in AWS

Signature Attributes

token

The authentication token to be passed to the Kubernetes cluster (via Authorization header or kubectl --token)

k8s_json

This wraps the token in the appropiate JSON output for using the token as kubectl pluggable authentication module

SEE ALSO

https://github.com/kubernetes-sigs/aws-iam-authenticator

BUGS and SOURCE

The source code is located here: https://github.com/pplu/AWSv4Signer

Please report bugs to: https://github.com/pplu/AWSv4Signer/issues

AUTHOR

Jose Luis Martinez
pplusdomain@gmail.com

COPYRIGHT and LICENSE

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.