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
We have noticed that when we change the instance count out external drive mounts are flagged to be replaced. I tracked this back to how the output is being wrapped in function calls such as, compact. This function seems to always return a new list, which it seem that Terraform will then flag everything that uses it as being new. I feel these function calls served a purpose in the older version when the resource was separated but now I do not see a reason for them.
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.
Summary
We have noticed that when we change the instance count out external drive mounts are flagged to be replaced. I tracked this back to how the output is being wrapped in function calls such as,
compact
. This function seems to always return a new list, which it seem that Terraform will then flag everything that uses it as being new. I feel these function calls served a purpose in the older version when the resource was separated but now I do not see a reason for them.Example
var.resource_count
changes,aws_volume_attachment
andaws_ebs_volume
are flagged to be replaced.Possible Solution
I propose the following update to the
output.tf
file so that it is easier to use this module with external drives andnull_resource
steps.The text was updated successfully, but these errors were encountered: