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

fix: Ensure that var.create is tied to all resources correctly #2308

Merged

Conversation

bryantbiggs
Copy link
Member

Description

  • Ensure that var.create is tied to all resources correctly

Motivation and Context

Breaking Changes

  • No

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@FernandoMiguel
Copy link
Contributor

tested this locally and works.
no longer having the issue reported in #2306

@FernandoMiguel
Copy link
Contributor

module "node_termination_queue" {
  source = "git::ssh://git@github.com/terraform-aws-modules/terraform-aws-eks.git//modules/karpenter?ref=185d91afa0a0e548b0d8d686c6dde6012d88e431"
  # source  = "terraform-aws-modules/eks/aws//modules/karpenter"
  # version = "~> 18.31"

  cluster_name              = var.eks_cluster_id
  queue_name                = "${var.eks_cluster_id}-${random_uuid.random_uuid.result}"
  enable_spot_termination   = true
  queue_managed_sse_enabled = true

  create_iam_role            = false
  create_instance_profile    = false
  create_irsa                = false
  iam_role_attach_cni_policy = false
}
output "node_termination_queue" { value = module.node_termination_queue }
output "node_termination_queue_queue_name" { value = module.node_termination_queue.queue_name }

Copy link
Member

@antonbabenko antonbabenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Thanks!

@bryantbiggs bryantbiggs merged commit 3fb28b3 into terraform-aws-modules:master Nov 23, 2022
@bryantbiggs bryantbiggs deleted the fix/karpenter-policy branch November 23, 2022 17:43
antonbabenko pushed a commit that referenced this pull request Nov 23, 2022
### [18.31.2](v18.31.1...v18.31.2) (2022-11-23)

### Bug Fixes

* Ensure that `var.create` is tied to all resources correctly ([#2308](#2308)) ([3fb28b3](3fb28b3))
@antonbabenko
Copy link
Member

This PR is included in version 18.31.2 🎉

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new karpenter policy fails
3 participants