a new flag `--cluster-alias` for `eks update-kubeconfig`
- Dominant language
- Python
- Stars
- 17.3k
- Forks
- 4.6k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 13
Description
### Describe the feature
add a new flag for setting `cluster` name for `eks update-kubeconfig`
### Use Case
i turn up and tear down frequently to learn eks.
for mgmt my kubeconfig, i want to set cluster, context and user as simple name over cluster's arn.
there are flags for each cluster and user , `--alias` and `--user-alias`, but no for cluster.
### Proposed Solution
add a flag `--cluster-alias` for `eks update-kubeconfig`.
usage like:
```sh
export AWS_PROFLIE=YOUR_PROFILE
export CLUSTER_NAME=YOUR_CLUSTER_NAME
aws eks update-kubeconfig --name $CLUSTER_NAME \
--alias $AWS_PROFILE@$CLUSTER_NAME \
--user-alias $AWS_PROFILE \
--cluster-alias $CLUSTER_NAME
```
### Other Information
_No response_
### Acknowledgements
- [X] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### CLI version used
aws-cli/2.13.13 Python/3.11.4 Darwin/22.6.0 exe/x86_64 prompt/off
### Environment details (OS name and version, etc.)
macOS 13.5.2(22G91)
Contributor guide
Assessment
This issue has not been assessed yet.