How to enable custom storage (longhorn) for terraform-managed EKS cluster

Hello.

I have a deployed EKS cluster, created and managed using Terraform. It looks something like this:

resource "aws_eks_cluster" "example" {
  name     = "example"
  role_arn = aws_iam_role.example.arn

  vpc_config {
    subnet_ids = [aws_subnet.example1.id, aws_subnet.example2.id]
  }
}

To install longhorn manually I can do this:

kubectl create namespace longhorn-system
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.1.0/deploy/iscsi/longhorn-iscsi-installation.yaml --namespace longhorn-system
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml --namespace longhorn-system

My question is - what’s the best way to install longhorn on this Kubernetes cluster automatically via Terraform?