Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: aws_autoscaling_group - No default value implementation for 'version' parameter in the 'launch_template' block #29127

Open
ShaheenK27 opened this issue Jan 27, 2023 · 1 comment
Labels
bug Addresses a defect in current functionality. service/autoscaling Issues and PRs that pertain to the autoscaling service.

Comments

@ShaheenK27
Copy link

ShaheenK27 commented Jan 27, 2023

Terraform Core Version

1.0.0

AWS Provider Version

3.70.0, 4.51.0

Affected Resource(s)

  • aws_autoscaling_group

Expected Behavior

  • Similar to what has been done for version parameter in launch_template_specification blocks:

    • The provider source code must implement a default value for the version parameter in the top-level launch_template block.

Actual Behavior

  • As per the terraform reference, the default value for the version parameter (in launch_template block) is $Default

  • However, 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.

    image

  • 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 as launch_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

resource "aws_autoscaling_group" "asg-test01" {
  max_size           = 1
  min_size           = 1
  availability_zones = ["ap-northeast-1a"]
  launch_template {
    name    = "test02"
  }
  ...
}

Steps to Reproduce

1. terraform apply (without version in the launch_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

@ShaheenK27 ShaheenK27 added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Jan 27, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/autoscaling Issues and PRs that pertain to the autoscaling service. label Jan 27, 2023
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/autoscaling Issues and PRs that pertain to the autoscaling service.
Projects
None yet
Development

No branches or pull requests

2 participants