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

aws_eks_node_group - support for defining ec2 instance name prefix #12451

Closed
assafcoh opened this issue Mar 18, 2020 · 3 comments
Closed

aws_eks_node_group - support for defining ec2 instance name prefix #12451

assafcoh opened this issue Mar 18, 2020 · 3 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/eks Issues and PRs that pertain to the eks service. upstream Addresses functionality related to the cloud provider.

Comments

@assafcoh
Copy link

assafcoh commented Mar 18, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

we are deploying several eks clusters in our aws account and noticed the ec2 instances names are empty. This makes it hard for our qa and dev-ops teams to identify which eks cluster an ec2 instance belongs to.
It would be great if we could specify a name prefix for all the ec2 instances spun up by a nodegroup.

New or Affected Resource(s)

aws_eks_node_group

Potential Terraform Configuration

resource "aws_eks_node_group" "staging-service-example" {
  cluster_name    = aws_eks_cluster.example.name
  node_group_name = "example"
  node_role_arn   = aws_iam_role.example.arn
  subnet_ids      = aws_subnet.example[*].id
 
  # for example something like this
  node_name_prefix = "staging-us-east-1"

  scaling_config {
    desired_size = 1
    max_size     = 1
    min_size     = 1
  }

  depends_on = [
    aws_iam_role_policy_attachment.example-AmazonEKSWorkerNodePolicy,
    aws_iam_role_policy_attachment.example-AmazonEKS_CNI_Policy,
    aws_iam_role_policy_attachment.example-AmazonEC2ContainerRegistryReadOnly,
  ]
}

References

@assafcoh assafcoh added the enhancement Requests to existing resources that expand the functionality or scope. label Mar 18, 2020
@ghost ghost added the service/eks Issues and PRs that pertain to the eks service. label Mar 18, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Mar 18, 2020
@matglas
Copy link

matglas commented Apr 8, 2020

We tried to add the tag Name but it did not add anything to the nodes.
Maybe it would be possible to have the additional information be passed to the launch template that is created inside a additional_launch_config block for example. Also allowing to add additional security groups to nodes is not possible and would be very valuable.

additional_launch_config {
  security_groups = ["sg-id123456"]
  tags {
    "Name" = "eks-instance-name"
  }
}

@bflad bflad added upstream Addresses functionality related to the cloud provider. and removed needs-triage Waiting for first response or review from a maintainer. labels May 14, 2020
@bflad
Copy link
Contributor

bflad commented May 15, 2020

Hi folks 👋 Thank you for your interest in this feature request. The EKS API does not implement this functionality, so it is not appropriate for it to be implemented in the Terraform AWS Provider at this time. Rather than keep this issue open and lingering with nothing actionable at the moment, we are going to opt to close this for now. When the API support exists, we will gladly implement it! 😄

In terms of future tracking of this functionality, you may be interested in:

@ghost
Copy link

ghost commented Jun 14, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Jun 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/eks Issues and PRs that pertain to the eks service. upstream Addresses functionality related to the cloud provider.
Projects
None yet
Development

No branches or pull requests

3 participants