Problem
You run the Terraform code after modifying a value of one of your attributes and notice that when you run "terraform apply" no changes are being applied.
Prerequisites
In your Terraform code you are using the lifecycle configuration block with the ignore_changes argument:
lifecycle {
create_before_destroy = true
ignore_changes = [
scaling_config[0].desired_size,
]
}
NOTE: I have used the attribute desired_size for this example, but any other attribute can be supplied.
Cause
The ignore_changes argument will prevent terraform to apply any changes made to the desired_size attribute or any other attribute that has been ignored under the same block.
Solutions:
Remove the attribute from the ignore_changes argument under the lifecycle configuration block.