Closed luisamador closed 5 years ago
What's the output type of data.terraform_remote_state.common.private_subnets
?
The subnets
variable accepts a list of strings (https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/variables.tf#L75), so if your output is already a list, might try the following:
workers_group_defaults {
subnets = "${data.terraform_remote_state.common.private_subnets}" #Launch Worker nodes on private subnets only.
}
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
I have issues
I'm submitting a...
What is the current behavior?
I'm trying to get my EKS worker nodes deployed only on private subnets.
after running
terraform plan
I get this error message:If this is a bug, how to reproduce? Please include a code sample if relevant.
Define the worker_group_defaults within your EKS module and pass in a list of private subnets.
What's the expected behavior?
The EKS worker nodes get deployed on the specified private subnets.
Environment details
Any other relevant info