Creates an EKS Fargate profile linked to a specific cluster, with a defined execution role and subnet IDs.

Terraform Template

resource "aws_eks_fargate_profile" "example" {
  cluster_name = "aws_eks_cluster.example.name"
  fargate_profile_name = "example"
  pod_execution_role_arn = "aws_iam_role.example.arn"

  selector {
    namespace = "example"
  }
  subnet_ids = aws_subnet.example[*].id
}