Ignore changes to desired_capacity for aws_autoscaling_group #46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The desired capacity of an autoscaling group can be changed externally due to autoscaling rules. This means that this Terraform resource should not try and change/overwrite this value when updating, as this could result in the number of instances being reduced below what is currently required.
From the Terraform docs:
https://www.terraform.io/docs/configuration/resources.html#ignore_changes