[Bug]: Importing aws_autoscaling_group does not set defaults #39308
Labels
bug
Addresses a defect in current functionality.
service/autoscaling
Issues and PRs that pertain to the autoscaling service.
Terraform Core Version
1.5.7
AWS Provider Version
5.67.0
Affected Resource(s)
Expected Behavior
Importing an ASG and then running
terraform apply
shows changes to the following properties:force_delete
force_delete_warm_pool
ignore_failed_scaling_activities
wait_for_capacity_timeout
This is caused by the import not setting the default values for those props.
Actual Behavior
When importing an ASG and running
terrform apply
afterwards without modifications it should show no change.The import should set defaults for the following properties:
force_delete
force_delete_warm_pool
ignore_failed_scaling_activities
wait_for_capacity_timeout
The root cause for this seems to be that the
Read
method of the resource doesn't set those attributes.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
terraform apply
terraform state rm aws_autoscaling_group.other
terraform import aws_autoscaling_group.other "test-asg"
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: