title: Planning to create a CFT which need 3 roles with managed policy and a inline policy attached to them
body: <p>I am trying to create an CFT which has 
  1. 3 different roles with Managed policy
  2. INline policy which should be added to three roles which are created in CFT.</p>
  
  <p>But i could not do as this is throwing me error saying atleast one resource must be defined.</p>
  
  <p>Please help me in achieving this.</p>
  
  <p>{
      "AWSTemplateFormatVersion": "2010-09-09",
      "Resources": {</p>
  
  <pre><code>    "EMRDefaultRole": {
          "Type": "AWS::IAM::Role",
          "Properties": {
              "RoleName": "EMR_DefaultRole",
              "AssumeRolePolicyDocument": {
                  "Version": "2012-10-17",
                  "Statement": [{
                      "Effect": "Allow",
                      "Principal": {
                          "Service": "elasticmapreduce.amazonaws.com"
                      },
                      "Action": "sts:AssumeRole"
                  }]
              },
              "ManagedPolicyArns": [
                  "arn:aws:iam::aws:policy/service-role/AmazonElasticMapReduceRole"
              ]
          }
      },
      "EMREC2DefaultRole": {
          "Type": "AWS::IAM::Role",
          "Properties": {
              "RoleName": "EMR_EC2_DefaultRole",
              "AssumeRolePolicyDocument": {
                  "Version": "2012-10-17",
                  "Statement": [{
                      "Effect": "Allow",
                      "Principal": {
                          "Service": "ec2.amazonaws.com"
                      },
                      "Action": "sts:AssumeRole"
                  }]
              },
              "ManagedPolicyArns": [
                  "arn:aws:iam::aws:policy/service-role/AmazonElasticMapReduceforEC2Role"
              ]
          }
      },
      "EMRAutoScalingDefaultRole": {
          "Type": "AWS::IAM::Role",
          "Properties": {
              "RoleName": "EMR_AutoScaling_DefaultRole",
              "AssumeRolePolicyDocument": {
                  "Version": "2012-10-17",
                  "Statement": [{
                      "Effect": "Allow",
                      "Principal": {
                          "Service": [ "elasticmapreduce.amazonaws.com",
                          "application-autoscaling.amazonaws.com"]
                      },
                      "Action": "sts:AssumeRole"
                  }]
              },
              "ManagedPolicyArns": [
                  "arn:aws:iam::aws:policy/service-role/AmazonElasticMapReduceforAutoScalingRole"
              ]
          }
      },
      "EMRS3Policies": {
          "Type": "AWS::IAM::Policy",
          "Properties": {
              "PolicyName": "Moodys-IAM-EMR-S3-Access-Policy",
              "PolicyDocument": {
                  "Statement": [{
                          "Effect": "Allow",
                          "Action": [
                              "s3:HeadBucket",
                              "s3:GetObject"
                          ],
                          "Resource": {
                              "Fn::Join": ["", ["arn:aws:s3:::mit-", {
                                  "Ref": "AWS::AccountId"
                              }, "-emr-files/*"]]
                          }
                      }
  
                  ]
              },
              "Roles": [{
                  "Ref": "EMRDefaultRole"},
                  {"Ref": "EMREC2DefaultRole"},
                  {"Ref": "EMRAutoScalingDefaultRole"
              }]
          }
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Like i am expecting three Role where an managed policy and inline policy are attached.</p>