[Bug]: aws_autoscaling_group - No default value implementation for 'version' parameter in the 'launch_template' block #29127
Labels
bug
Addresses a defect in current functionality.
service/autoscaling
Issues and PRs that pertain to the autoscaling service.
Terraform Core Version
1.0.0
AWS Provider Version
3.70.0, 4.51.0
Affected Resource(s)
Expected Behavior
Similar to what has been done for
version
parameter in launch_template_specification blocks:version
parameter in the top-levellaunch_template
block.Actual Behavior
As per the terraform reference, the default value for the
version
parameter (inlaunch_template
block) is $DefaultHowever, the provider code does not implement a default value for this parameter (Refer: autoscaling_group.go#L217)
Due to this, the version is passed as empty. When this Autoscaling group is viewed on the AWS console, the Console is unable to display the details of launch template as it does not know which version of the template should be read.
The edit section of the launch template also has nothing selected due to the missing version.
The
launch_template_specification
blocks under 'mixed_instances_policy' have the same schema aslaunch_template
, but they correctly implement a default value in the code (Refer: autoscaling_group.go#L327)Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
1. terraform apply (without
version
in thelaunch_template
block)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: