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

Failure attaching AutoScaling Group #5

Open
emptyway opened this issue Oct 6, 2018 · 1 comment
Open

Failure attaching AutoScaling Group #5

emptyway opened this issue Oct 6, 2018 · 1 comment

Comments

@emptyway
Copy link
Contributor

emptyway commented Oct 6, 2018

Unable to run the cluster on multiple zones.

Error: Error applying plan:

1 error(s) occurred:

  • aws_autoscaling_attachment.alb_external: 1 error(s) occurred:

  • aws_autoscaling_attachment.alb_external: Failure attaching AutoScaling Group nodes-us-east-1a.test.k8s.local,nodes-us-east-1b.test.k8s.local,nodes-us-east-1c.test.k8s.local with ALB Target Group: arn:aws:elasticloadbalancing:us-east-1:xxxxxxxx:targetgroup/alb-ext-xxxxxxxx/xxxxxxxx: ValidationError: AutoScalingGroup name not found - null
    status code: 400, request id: xxxxx-xxxx-xxxx-xxxx-xxxxxx

@emptyway
Copy link
Contributor Author

btw. my workaround was to create separates resources for each zone.

resource "aws_autoscaling_attachment" "alb_external-a" {
  autoscaling_group_name = "${data.aws_autoscaling_groups.kops_nodes.names[0]}"
  alb_target_group_arn   = "${aws_lb_target_group.alb_external.arn}"
}


resource "aws_autoscaling_attachment" "alb_external-b" {
  autoscaling_group_name = "${data.aws_autoscaling_groups.kops_nodes.names[1]}"
  alb_target_group_arn   = "${aws_lb_target_group.alb_external.arn}"
}


resource "aws_autoscaling_attachment" "alb_external-c" {
  autoscaling_group_name = "${data.aws_autoscaling_groups.kops_nodes.names[2]}"
  alb_target_group_arn   = "${aws_lb_target_group.alb_external.arn}"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant