Can’t seem to delete an unhealthy cluster. I get the following error:
Command failed: /opt/pf9/qbert/bin/terraform destroy -refresh=true -force -state=/mnt/mysqlfs/qbert/cloud/aws/3ebaaee8-2aae-4e38-88be-390ea692d18e.tfstate -var-file=/mnt/mysqlfs/qbert/cloud/aws/3ebaaee8-2aae-4e38-88be-390ea692d18e.tfvars.json -no-color -input=false
Error: Error in function call
on …/…/modules/network/private/private-network.tf line 86, in resource “aws_route_table” “nat_route_table”:
86: nat_gateway_id = element(aws_nat_gateway.nat_gateway.*.id, count.index)
|----------------
| aws_nat_gateway.nat_gateway is empty tuple
| count.index is 2
Call to function “element” failed: cannot use element function with an empty
list.
Error: Error in function call
on …/…/modules/network/private/private-network.tf line 86, in resource “aws_route_table” “nat_route_table”:
86: nat_gateway_id = element(aws_nat_gateway.nat_gateway.*.id, count.index)
|----------------
| aws_nat_gateway.nat_gateway is empty tuple
| count.index is 0
Call to function “element” failed: cannot use element function with an empty
list.
Error: Error in function call
on …/…/modules/network/private/private-network.tf line 86, in resource “aws_route_table” “nat_route_table”:
86: nat_gateway_id = element(aws_nat_gateway.nat_gateway.*.id, count.index)
|----------------
| aws_nat_gateway.nat_gateway is empty tuple
| count.index is 1
Call to function “element” failed: cannot use element function with an empty
list.