question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set AWS EKS cluster name

See original GitHub issue

When 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

https://github.com/pulumi/pulumi-eks/blob/79fb423207e0906de815f0d08857f37b85bb14e7/nodejs/eks/cluster.ts#L332-L334

  const eksCluster = new aws.eks.Cluster(`${name}-eksCluster`, {
      name,
      roleArn: eksRole.apply(r => r.arn), 
      vpcConfig: { 
      ...

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
gregbacchuscommented, Dec 11, 2019

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

1reaction
gregbacchuscommented, Oct 27, 2020

You can now specify the name in the options

const cluster = new Cluster(name, {
    name,
    // ...
  }, {...});

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found