Search code examples
amazon-web-servicesamazon-s3amazon-ec2amazon-emr

How to specify Ec2 Instance Attributes in a AWS::EMR::Cluster CloudFormation Template?


Very new to AWS and looking at EMR and hoping for some direction and information here. I want to create a cloud formation template for EMR using AWS:EMR:Cluster, however I don't see a way to specify my EC2 Attributes like, Security Groups and EC2 Instance profile.

I am looking at the resources here: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html

Can you direct me how this accomplish this from a cloudforatemplate?

I saw the AdditionalInfo do I add the Ec2 JSON template there ?


Solution

  • You should configure the Instances property. Each instance is a JobFlowInstancesConfig.

    For instance profiles, provide a JobFlowRole. All EC2 instances in the EMR cluster assume this role.