Open sinkr opened 2 weeks ago
that is a lot of interesting configurations - may I ask why you are approaching your configuration from this perspective? meaning:
Hi Bryant, thank you for the response.
I can't definitively speak to why I ended up on this combo, however, loosely I think it had to do with not getting the correct disk_size
and wanting the tagging to take place on all attached entities, like ENIs, EBS, etc.
IIRC, I feel like the only way I was able to get that combo was with this above, but perhaps some other iteration would work, however, I think long-term I'm moving towards Karpenter.
After many hours of debugging, I found that if I explicitly set launch_template_version
to the current integer value, the infinite plan goes away, however, I do feel like there's an opportunity here to add logic such that we do not go to $Default
unnecessarily.
My initial hypothesis was that the latest (or specified) launch template revision wasn't tagged as Default
, however it was.
Description
Please provide a clear and concise description of the issue you are encountering, and a reproduction of your configuration (see the
examples/*
directory for references that you can copy+paste and tailor to match your configs if you are unable to copy your exact configuration). The reproduction MUST be executable by runningterraform init && terraform apply
without any further changes.If your request is for a new feature, please use the
Feature request
template.⚠️ Note
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Module version [Required]: v20.24.0
Terraform version: Terraform v1.9.5 on darwin_arm64
Provider version(s): Terraform v1.9.5 on darwin_arm64
provider registry.terraform.io/alekc/kubectl v2.0.4
provider registry.terraform.io/gavinbunney/kubectl v1.14.0
provider registry.terraform.io/hashicorp/aws v5.64.0
provider registry.terraform.io/hashicorp/cloudinit v2.3.4
provider registry.terraform.io/hashicorp/helm v2.14.1
provider registry.terraform.io/hashicorp/kubernetes v2.31.0
provider registry.terraform.io/hashicorp/null v3.2.2
provider registry.terraform.io/hashicorp/time v0.12.0
provider registry.terraform.io/hashicorp/tls v4.0.5
provider registry.terraform.io/terraform-aws-modules/http v2.4.1
Reproduction Code [Required]
node-groups.tf
:launch-templates.tf
:auto.tfvars:
Steps to reproduce the behavior:
terraform workspace select development-us-east-2-<redacted>
terraform init -upgrade
terraform apply
Workspaces: Yes.
Cleared cache: Yes.
Steps to issue:
terraform workspace select development-us-east-2-<redacted>
terraform init -upgrade
terraform apply
Expected behavior
Once applied, the plan should never attempt to update launch_template version from its current version to $Default.
Actual behavior
The plan continues to want to update the launch template's version for every run:
Terminal Output Screenshot(s)