This template creates an EMR cluster using a custom Amazon Linux AMI for the EC2 instances in the cluster. It specifies the instance type, release label, subnet ID, termination protection, and other properties. The cluster includes a master instance group, a core instance group, and two task instance groups. It also creates the necessary IAM roles and instance profiles.

CloudFormation Template