Core - v0.11.3
AWS Provider - v1.10
Please list the resources as a list, for example:
resource "aws_autoscaling_policy" "ecs_general_purpose_scale_out" {
name = "memory-reservation-high"
autoscaling_group_name = "${module.ecs_general_purpose.group}"
estimated_instance_warmup = 60
adjustment_type = "PercentChangeInCapacity"
policy_type = "StepScaling"
metric_aggregation_type = "Maximum"
step_adjustment {
scaling_adjustment = 100
metric_interval_lower_bound = 0
}
}
Modifying a field, such as the scaling adjustment, should modify the resource.
Terraform fails with a validation error.
Error: Error applying plan:
1 error(s) occurred:
* aws_autoscaling_policy.ecs_general_purpose_scale_out: 1 error(s) occurred:
* aws_autoscaling_policy.ecs_general_purpose_scale_out: StepScaling policy types cannot use scaling_adjustment!
Please list the steps required to reproduce the issue, for example:
terraform applyterraform applyThere is error is nonsensical and contradicts the documentation and the behavior on create. Step scaling policies do have a scaling adjustment.
The error is caused by zero value of arguments. But only nil is handled in current code. I've submitted a pr and hopefully it should fix issues for other arguments in the same scenario.
Ahead of schedule, this has been released in version 1.13.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
3739 has been merged into master and will release with v1.13.0 of the AWS provider, likely in about a week.