Implementing Terraform for creating aws eks_cluster and aws eks_fargate_profile

Hi,
I’m trying to create aws_eks_cluster and aws_eks_fargate_profile in automated manner by passing list of objects type in .tfvars file but getting one error while iterating over a fargate_profile_name, it is of string type but while iterating for_each loop it is getting list value.
.tfvars file:
eks_clusters = [
{
cluster_name = “aws-eks-cluster-01”,
subnet_ids = [“subnet-763b683f”, “subnet-793b031e”]
endpoint_private_access = true
endpoint_public_access = false
fargate_profile = [“aws-eks-fargate-profile-01”, “aws-eks-fargate-profile-02”]
selectors =[{
namespace = “kube-system”,
labels = {
“k8s-app” = “kube-dns”
}
}]
},
{
cluster_name = “aws-eks-cluster-02”,
subnet_ids = [“subnet-763b683f”, “subnet-793b031e”]
endpoint_private_access = false
endpoint_public_access = true
fargate_profile = [“aws-eks-fargate-profile-03”, “aws-eks-fargate-profile-04”]
selectors =[{
namespace = “kube-system”,
labels = {
“k8s-app” = “kube-dns”
}
}]
}
]