Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing AWS_PROFILE on update-kubeconfig cli #21

Closed
dileep-p opened this issue Oct 2, 2018 · 1 comment
Closed

Passing AWS_PROFILE on update-kubeconfig cli #21

dileep-p opened this issue Oct 2, 2018 · 1 comment

Comments

@dileep-p
Copy link

dileep-p commented Oct 2, 2018

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"
@dileep-p
Copy link
Author

dileep-p commented Oct 2, 2018

aws/aws-cli#3619 raised here.

@dileep-p dileep-p closed this as completed Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant