Set AWS EKS cluster name
See original GitHub issueWhen creating the aws.eks.Cluster, it would be great if the name property that is provided would passed in would be passed in. This way the AWS resource created will have a sensible name and will then be easily identifiable.
All that is required is to pass the name to the aws.eks.Cluster opts argument
const eksCluster = new aws.eks.Cluster(`${name}-eksCluster`, {
name,
roleArn: eksRole.apply(r => r.arn),
vpcConfig: {
...
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Creating an Amazon EKS cluster - AWS Documentation
Replace my-cluster with a name for your cluster. The name can contain only alphanumeric characters (case-sensitive) and hyphens. It must start with an ......
Read more >Tagging your Amazon EKS resources - AWS Documentation
The AWS generated cost allocation tag, specifically aws:eks:cluster-name , lets you break down Amazon EC2 instance costs by individual Amazon EKS cluster in ......
Read more >Creating or updating a kubeconfig file for an Amazon EKS ...
Create or update a kubeconfig file for your cluster. Replace region-code with the AWS Region that your cluster is in and replace my-cluster...
Read more >Connect to Amazon EKS clusters
This configuration allows you to connect to your cluster using the kubectl command line.
Read more >list-clusters — AWS CLI 1.27.32 Command Reference
Description. Lists the Amazon EKS clusters in your Amazon Web Services account in the specified Region.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

One of the reasons that it is useful to have a known name for the EKS cluster, is that you need to add a tag to the subnets
kubernetes.io/cluster/${eksClusterName}: 'shared', and you need to create the subnets before you create the EKS cluster.Without that tag on the subnets, AWS has problems auto-creating the load balancers required by the k8s services.
See https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html
You can now specify the
namein the options