EKS Webhook Token Authentication: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:


EKS has native support for [[Kubernetes_Security_Concepts#Webhook_Token_Authentication|webhook token authentication]].
EKS has native support for [[Kubernetes_Security_Concepts#Webhook_Token_Authentication|webhook token authentication]].
=Generate a Token=
For the current IAM User, associated with the current AWS_PROFILE:
<syntaxhighlight lang='bash'>
aws eks get-token --cluster <cluster-name>
</syntaxhighlight>
For an arbitrary IAM role:
<syntaxhighlight lang='bash'>
aws eks get-token --cluster <cluster-name> --role <role-arn>
</syntaxhighlight>

Revision as of 01:12, 2 October 2020

External

Internal

Overview

EKS has native support for webhook token authentication.

Generate a Token

For the current IAM User, associated with the current AWS_PROFILE:

aws eks get-token --cluster <cluster-name>

For an arbitrary IAM role:

aws eks get-token --cluster <cluster-name> --role <role-arn>