Skip to content

Commit

Permalink
fix: Correct key used on license_configuration_arn (#2796)
Browse files Browse the repository at this point in the history
fix: Reference to undeclared resource

Co-authored-by: Lamaspanzer <contact@lamaspanzer.ovh>
  • Loading branch information
palpaga and Lamaspanzer authored Oct 30, 2023
1 parent 51cc6be commit bd4bda2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/eks-managed-node-group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ resource "aws_launch_template" "this" {
key_name = var.key_name

dynamic "license_specification" {
for_each = length(var.license_specifications) > 0 ? var.license_specifications : {}
for_each = length(var.license_specifications) > 0 ? var.license_specifications : []

content {
license_configuration_arn = license_specifications.value.license_configuration_arn
license_configuration_arn = license_specification.value.license_configuration_arn
}
}

Expand Down
4 changes: 2 additions & 2 deletions modules/self-managed-node-group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ resource "aws_launch_template" "this" {
key_name = var.key_name

dynamic "license_specification" {
for_each = length(var.license_specifications) > 0 ? var.license_specifications : {}
for_each = length(var.license_specifications) > 0 ? var.license_specifications : []

content {
license_configuration_arn = license_specifications.value.license_configuration_arn
license_configuration_arn = license_specification.value.license_configuration_arn
}
}

Expand Down

0 comments on commit bd4bda2

Please sign in to comment.