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

aws_autoscaling_group throws unexpected EOF error #13579

Closed
caiyunlin opened this issue Jun 2, 2020 · 2 comments
Closed

aws_autoscaling_group throws unexpected EOF error #13579

caiyunlin opened this issue Jun 2, 2020 · 2 comments
Labels
service/autoscaling Issues and PRs that pertain to the autoscaling service.

Comments

@caiyunlin
Copy link

caiyunlin commented Jun 2, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

0.11.10

Affected Resource(s)

  • aws_autoscaling_group

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

resource "aws_autoscaling_group" "xxxxxx_auto_scale_nrt" {
  launch_configuration = "${aws_launch_configuration.xxxxxx_lc.id}"
  vpc_zone_identifier = ["${var.private_subnet_a_id}", "${var.private_subnet_b_id}"]
  min_size            = 2
  max_size            = 4
  desired_capacity    = 2
  target_group_arns   = ["${aws_lb_target_group.xxxxxx_alb_tr_gp.arn}"]
  health_check_grace_period = 2000
  health_check_type   = "ELB"

  depends_on = ["aws_db_instance.xxxxxx_rds"]

  tags = [
    {
      key                 = "application-id"
      value               = "${var.application-id}"
      propagate_at_launch = true
    },
    {
      key                 = "owner"
      value               = "${var.owner}"
      propagate_at_launch = true
    },
    {
      key                 = "group1"
      value               = "${var.group}"
      propagate_at_launch = true
    },
    {
      key                 = "primary"
      value               = "false"
      propagate_at_launch = true
    }
  ]
}

Debug Output

Panic Output

Expected Behavior

Terraform will create autoscale group successfully

Actual Behavior

Terraform throw unexpected EOF error

Steps to Reproduce

  1. terraform plan

Workaround

This issue occurred about 4 days ago, we found terraform-provider-aws v2.64.0 released on that time, so we update main.tf to set provider version to 2.63.0 and then re-run terraform plan, the issue is gone. We think the upgrade of terraform-provider-aws could caused this issue.

Important Factoids

References

  • #0000
@ghost ghost added the service/autoscaling Issues and PRs that pertain to the autoscaling service. label Jun 2, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jun 2, 2020
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Jun 2, 2020
@ewbankkit
Copy link
Contributor

Hi @cylin2000 Thanks for raising this issue.
The problem has been noted in #13549 and I'll close this one so as to consolidate discussion there.

@ghost
Copy link

ghost commented Jul 2, 2020

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!

@ghost ghost locked and limited conversation to collaborators Jul 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/autoscaling Issues and PRs that pertain to the autoscaling service.
Projects
None yet
Development

No branches or pull requests

2 participants