Hello,
I’m experiencing an issue with Terraform where changes are not being applied despite running the terraform apply command and confirming with yes. The pending changes are not reflected in the infrastructure or the state, and Terraform consistently shows the same pending changes even after running terraform plan.
Problem Details:
When we run terraform apply, Terraform shows the changes pending and asks for confirmation with yes, but after confirming, no changes are applied.
After executing terraform refresh, Terraform continues to show the same pending changes in the subsequent terraform plan.
This is the plan/apply
# module.custom_eks.module.eks.data.aws_eks_addon_version.this["coredns"] will be read during apply
# (depends on a resource or a module with changes pending)
<= data "aws_eks_addon_version" "this" {
+ addon_name = "coredns"
+ id = (known after apply)
+ kubernetes_version = "1.32"
+ most_recent = true
+ region = (known after apply)
+ version = (known after apply)
}
# module.custom_eks.module.eks.data.aws_eks_addon_version.this["eks-pod-identity-agent"] will be read during apply
# (depends on a resource or a module with changes pending)
<= data "aws_eks_addon_version" "this" {
+ addon_name = "eks-pod-identity-agent"
+ id = (known after apply)
+ kubernetes_version = "1.32"
+ most_recent = true
+ region = (known after apply)
+ version = (known after apply)
}
# module.custom_eks.module.eks.data.aws_eks_addon_version.this["kube-proxy"] will be read during apply
# (depends on a resource or a module with changes pending)
<= data "aws_eks_addon_version" "this" {
+ addon_name = "kube-proxy"
+ id = (known after apply)
+ kubernetes_version = "1.32"
+ most_recent = true
+ region = (known after apply)
+ version = (known after apply)
}
# module.custom_eks.module.eks.data.tls_certificate.this[0] will be read during apply
# (depends on a resource or a module with changes pending)
<= data "tls_certificate" "this" {
+ certificates = (known after apply)
+ id = (known after apply)
+ url = "[[HIDDEN]]"
}
# module.custom_eks.module.eks.aws_eks_addon.this["coredns"] will be updated in-place
~ resource "aws_eks_addon" "this" {
~ addon_version = "v1.11.4-eksbuild.24" -> (known after apply)
id = "[[HIDDEN]]:coredns"
tags = {}
# (12 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# module.custom_eks.module.eks.aws_eks_addon.this["eks-pod-identity-agent"] will be updated in-place
~ resource "aws_eks_addon" "this" {
~ addon_version = "v1.3.10-eksbuild.1" -> (known after apply)
id = "[[HIDDEN]]:eks-pod-identity-agent"
tags = {}
# (12 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# module.custom_eks.module.eks.aws_eks_addon.this["kube-proxy"] will be updated in-place
~ resource "aws_eks_addon" "this" {
~ addon_version = "v1.32.9-eksbuild.2" -> (known after apply)
id = "[[HIDDEN]]:kube-proxy"
tags = {}
# (12 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# module.custom_eks.module.eks.aws_eks_cluster.this[0] will be updated in-place
~ resource "aws_eks_cluster" "this" {
id = "[[HIDDEN]]"
name = "[[HIDDEN]]"
tags = {
"[[HIDDEN]]" = "[[HIDDEN]]"
}
# (14 unchanged attributes hidden)
~ encryption_config {
# (1 unchanged attribute hidden)
~ provider {
~ key_arn = "[[HIDDEN]]" -> "[[HIDDEN]]"
}
}
# (5 unchanged blocks hidden)
}
# module.custom_eks.module.eks.aws_iam_openid_connect_provider.oidc_provider[0] will be updated in-place
~ resource "aws_iam_openid_connect_provider" "oidc_provider" {
id = "[[HIDDEN]]"
tags = {
"Name" = "[[HIDDEN]]"
}
~ thumbprint_list = [
- "[[HIDDEN]]",
] -> (known after apply)
# (4 unchanged attributes hidden)
}
Plan: 0 to add, 5 to change, 0 to destroy.
Every time I hit apply → yes . Nothing is changed, and the next apply/plan the result is the same.
Steps Already Taken:
We ran terraform refresh to update Terraform’s local state with the latest values from the infrastructure.
We used terraform plan afterward, but it still shows the same pending changes.
We executed terraform state show to verify the configuration in the state, but we don’t see significant differences from the actual infrastructure.
We attempted to import the resource using terraform import, but Terraform is already managing the resource in the state, causing conflicts when trying to re-import it.
Terraform Version: 1.14.0
AWS Provider Version: 6.23.0
Operating System: Tried on MacOS and Ubuntu