Aws-cli: Passing AWS_PROFILE on update-kubeconfig cli

Created on 2 Oct 2018  路  4Comments  路  Source: aws/aws-cli

Add profile details if calling update passing update-kubeconfig with profile details

aws eks update-kubeconfig --name k8s-test --kubeconfig k8s-test.config --profile myprofile

Currently this generates as

  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      args:
      - token
      - -i
      - k8s-test
      command: aws-iam-authenticator

Its good to add the profile details on the cli when not using default profile.

- name: aws
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      command: aws-iam-authenticator
      args:
        - "token"
        - "-i"
        - "k8s-test"

      env:
        - name: AWS_PROFILE
          value: "myprofile"
eks-kubeconfig feature-request

Most helpful comment

This is super useful, what's the hold-up in getting this shipped?

All 4 comments

Marking this as a feature request.

Hi @dileep-p , thanks for this request. I'll look into it.

Thanks @abeer91

This is super useful, what's the hold-up in getting this shipped?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ronaldpetty picture ronaldpetty  路  3Comments

pawelkilian picture pawelkilian  路  3Comments

ypant picture ypant  路  3Comments

ehammond picture ehammond  路  3Comments

rahul003 picture rahul003  路  3Comments