-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In-place update of aws_eks_cluster causes recreation of other resources #10269
Comments
Hi @jurajseffer 👋 Sorry you are running into trouble. Can you please provide the full |
E.g., removing the EKS logs config: AWS launch config recreation is forced by Terraform thinking that EKS values in user data template will change. This is its config value: |
I think we just hit this same bug but all we did was change a tag on an s3 bucket. However, we had a similar outcome in that id and json on an |
@bflad I would like to work on this. I will need time though, to research everything between EKS and launch configs. |
@denissimonovski I think this is a general Terraform problem, not specific to this provider. Any value being interpolated into a template causes updates to resources using the template and their dependencies even though the value interpolated into the template has not changed nor has the template output. |
I encountered what I think is another outcome of this issue which created a fatal error in |
@bflad I'm also experiencing a fatal error in I'm happy to share debug logs of a succesful run (when I don't try to change the cluster) and an unsuccessful run. I'm not super experienced at reading them but in the failed log I see one call to |
@bflad Even more digging on this issue posted here: hashicorp/terraform-provider-kubernetes#1131 (comment) |
Hi all 👋 As @jurajseffer mentioned above, this is (or was) a general Terraform issue related to the There's a pretty informative discussion about this over here that I'd recommend checking out if you'd like a bit more information. The gist of it is:
Since this is (or was) ultimately a Terraform issue rather than an AWS provider issue, I'm going to close this issue out as well. If you feel I've done this in error, please do let me know. |
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. |
Community Note
Terraform Version
Terraform v0.12.7
Affected Resource(s)
Terraform Configuration Files
Adding
enabled_cluster_log_types
to an existing EKS cluster.Expected Behavior
EKS cluster is updated in-place and logs enabled with no other changes planned.
Actual Behavior
Adding
enabled_cluster_log_types
shows in plan as in-place update of EKS cluster wherearn
norid
will be changing, only the logs directive. However, other resources such asaws_launch_configuration
andaws_iam_role_policy
which interpolate the ARN or id of theaws_eks_cluster
resource want to be updated or recreated.The text was updated successfully, but these errors were encountered: