This CloudFormation template creates an EMR cluster with EC2 instances. It allows you to specify the instance type, release label, subnet ID, and termination protection. The template also creates IAM roles and instance profiles for the EMR cluster.

CloudFormation Template