You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform detected the following changes made outside of Terraform since the
last "terraform apply":
# module.cluster.aws_iam_role.my-cluster has been changed
~ resource "aws_iam_role" "my-cluster" {
~ assume_role_policy = jsonencode(
~ {
~ Statement = [
~ {
~ Principal = {
~ Service = [
- "eks.amazonaws.com",
"ec2.amazonaws.com",
+ "eks.amazonaws.com",
]
}
# (2 unchanged elements hidden)
},
]
# (1 unchanged element hidden)
}
)
id = "my-cluster"
name = "my-cluster"
tags = {}
# (8 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Unless you have made equivalent changes to your configuration, or ignored the
relevant attributes using ignore_changes, the following plan may include
actions to undo or respond to these changes.
─────────────────────────────────────────────────────────────────────────────
No changes. Your infrastructure matches the configuration.
Your configuration already matches the changes detected above. If you'd like
to update the Terraform state to match, create and apply a refresh-only plan:
terraform apply -refresh-only
Releasing state lock. This may take a few moments...
Output from tf apply shows the changes referenced in the tf plan were ignored.
Acquiring state lock. This may take a few moments...
Releasing state lock. This may take a few moments...
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Attempted Fixes
We did try to alter flip the ordering of the Service list i.e.
The changes shown by terraform are exactly those reported by the provider. This is to inform users when unexpected changes happen outside terraform, but unfortunately many resources are not stable in various ways. The fact that no changes are planned means that the provider is normalizing the differences during the plan, and showing there is actually no need to take any action.
As you can see, the behavior here is all up to the provider, so any improvements in this area would need to be done by the provider itself. The relevant change to Terraform would be to provide a way to suppress the drift output, which you can follow in #28803.
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
We are seeing behavior where the
tf plan
reports changes that are not in the HCL.However the
tf apply
correctly ignores those changes.Is there anyway to silence or eliminate the warnings?
Terraform Version
Terraform Configuration Files
The relevant output from
plan
is:This is the relevant HCL:
Apply Output
Output from
tf apply
shows the changes referenced in thetf plan
were ignored.Attempted Fixes
We did try to alter flip the ordering of the
Service
list i.e.to see if the equality operator distinguished between differently ordered lists of the same items.
It made no difference.
The text was updated successfully, but these errors were encountered: