Error: Need at least 1 healthy instances in ELB, have 0
Cannot deploy standard install on us-gov-west-1 due to asg errors. Using the example in the readme.md, I implemented a simple main.tf with the following:
module "rke2" {
source = "git::https://github.com/rancherfederal/rke2-aws-tf.git"
cluster_name = "k8s-dev"
vpc_id = "vpc-0a6db126a86f58b4e"
subnets = ["subnet-0864955a47e54fabe"]
ami = "ami-0bf5f4d6bd38220c3"
}
# Provision Auto Scaling Group of agents to auto-join cluster
module "rke2_agents" {
source = "git::https://github.com/rancherfederal/rke2-aws-tf.git//modules/agent-nodepool"
name = "k8s-dev-agent"
vpc_id = "vpc-0a6db126a86f58b4e"
subnets = ["subnet-0864955a47e54fabe"]
ami = "ami-0bf5f4d6bd38220c3"
# Required input sourced from parent rke2 module, contains configuration that agents use to join existing cluster
cluster_data = module.rke2.cluster_data
}
After a while, this is where everything fails:
...
module.rke2.module.servers.aws_autoscaling_group.this: Still creating... [9m40s elapsed]
module.rke2.module.servers.aws_autoscaling_group.this: Still creating... [9m50s elapsed]
module.rke2.module.servers.aws_autoscaling_group.this: Still creating... [10m0s elapsed]
Error: "k8s-dev-cyl-server-rke2-nodepool": Waiting up to 10m0s: Need at least 1 healthy instances in ELB, have 0. Most recent activity: {
ActivityId: "e315f269-32cf-5417-2a04-4315785a02c5",
AutoScalingGroupARN: "arn:aws-us-gov:autoscaling:us-gov-west-1:881927530031:autoScalingGroup:1ecefb03-9d1e-4127-ae88-0fcc04430d97:autoScalingGroupName/k8s-dev-cyl-server-rke2-nodepool",
AutoScalingGroupName: "k8s-dev-cyl-server-rke2-nodepool",
Cause: "At 2021-10-19T20:44:44Z a user request created an AutoScalingGroup changing the desired capacity from 0 to 1. At 2021-10-19T20:44:48Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1.",
Description: "Launching a new EC2 instance: i-0502ee0202e4984cd",
Details: "{\"Subnet ID\":\"subnet-0864955a47e54fabe\",\"Availability Zone\":\"us-gov-west-1a\"}",
EndTime: 2021-10-19 20:45:07 +0000 UTC,
Progress: 100,
StartTime: 2021-10-19 20:44:50.517 +0000 UTC,
StatusCode: "Successful"
}
on .terraform/modules/rke2/modules/nodepool/main.tf line 57, in resource "aws_autoscaling_group" "this":
57: resource "aws_autoscaling_group" "this" {