Terraform gave me this error, which is not making sense to me. This occurred when I tried to create aws_eks_node_group for an AWS EKS cluster using terraform.
module.compute.aws_launch_template.eks: Modifications complete after 2s [id=xx] module.compute.aws_eks_node_group.nodegrp: Creating...
Error: error creating EKS Node Group (xxxx): InvalidRequestException: Network interfaces and an instance-level security groups may not be specified on the same request {
RespMetadata: { StatusCode: 400, RequestID: "xx" }, Message_: "Network interfaces and an instance-level security groups may not be specified on the same request" }
I have used aws_launch_template for creating the nodes. like so: