Is it supported to roll out EKS object via a yaml file

I am trying to create a bunch of Kubernetes objects upon ESK via Terraform.

I have already had YAML templates that can go with eksctl.

Here is a YAML template sample about Namespace. Does Terraform Kubernetets supports to creation of objects using this kind of file?

create amazon-cloudwatch namespace

apiVersion: v1
kind: Namespace
metadata:
name: amazon-cloudwatch
labels:
name: amazon-cloudwatch

Regards