Open slackfan opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @slackfan 👋 Thank you for taking the time to raise this! In this case, Terraform is behaving as expected. If drift is detected during the plan phase, the state needs to be updated, even if it's only for read-only attributes. If you'd like to ignore changes to a particular attribute, the ignore_changes
meta-argument may be used.
I see that you mentioned that this is causing the resource to be recreated, however, I'm not seeing that in the sample plan output that you provided. If this was causing resource recreation, we'd definitely want to look at that. Are you able to supply logging that shows this attribute causing resource recreation?
@slackfan are we ok to close this issue now?
Terraform Core Version
1.5.4
AWS Provider Version
5.10.0
Affected Resource(s)
resource: aws_eks_node_group attribute: resources
Expected Behavior
A changed value for the attribute
resources
should not be considered during planning as theresources
are an attribute only and cannot be configured as argument at all.Actual Behavior
The value of the attribute
resources
is considered as part of the plan, but should not.Relevant Error/Panic Output Snippet
Terraform Configuration Files
I am not aware of any special configuration. See Steps to Reproduce for an actual HCL snippet.
Steps to Reproduce
Deploy a
aws_eks_node_group
such as the following and during the next apply or plan Terraform tries to recreate the resource, even if actually nothing with the arguments changed.Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_node_group#resources
Would you like to implement a fix?
None