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

No tagging for managed node groups #3015

Closed
oc-stephen-bennett opened this issue Apr 17, 2024 · 3 comments
Closed

No tagging for managed node groups #3015

oc-stephen-bennett opened this issue Apr 17, 2024 · 3 comments
Labels

Comments

@oc-stephen-bennett
Copy link

Hi,

Apologies not sure to class this as a bug or feature request?

When creating a managed node group we are not getting tags to the autoscaling group or any of the ec2 instances / resources. we add as default tags to the provider or in the module

example:

provider "aws" {
  default_tags {
    tags = {
      terraform           = "true"
    }
  }
}

module "eks" {
  source  = "terraform-aws-modules/eks/aws"
  ...

  eks_managed_node_groups = {
    charlie = {
        ....

        tags = {
          terraform           = "true"
        }
      }
    }
  }
@tanadeau
Copy link

tanadeau commented May 5, 2024

We're also seeing this issue.

@bryantbiggs
Copy link
Member

You should pass tags via the tags input variable

@tanadeau
Copy link

tanadeau commented May 5, 2024

The root cause seems to be hashicorp/terraform-provider-aws#32328 where the provider default tags are not being passed into tag_specifications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants