apiVersion: v1 clusters: - cluster: server: <%= @endpoint %> certificate-authority-data: <%= @cacert %> name: <%= @cluster %> contexts: - context: cluster: <%= @cluster %> user: aws name: aws current-context: aws kind: Config preferences: {} users: - name: aws user: exec: apiVersion: client.authentication.k8s.io/v1alpha1 command: aws-iam-authenticator args: - "token" - "-i" - "<%= @cluster %>" # - "-r" # - "<%= @rolearn %>" # env: # - name: AWS_PROFILE # value: ""