title: Trust Relationship Error AssumeRole policy may only specify STS AssumeRole actions
body: <p>I am trying to add trust relationships to allow codedeploy to work for my role </p>
  
  <p>I have the following json </p>
  
  <pre><code>{
    "Version": "2012-10-17",
    "Statement": [
      {
        "Effect": "Allow",
        "Principal": {
          "Service": ["ec2.amazonaws.com", "codedeploy.amazonaws.com"]
        },
        "Action": ["sts:AssumeRole",
                  "codedeploy:GetApplication",
                  "codedeploy:GetDeploymentGroup",
                  "codedeploy:CreateDeployment",
                  "codedeploy:GetDeployment"      
        ]
      }
    ]
  }
  </code></pre>
  
  <p>I keep getting the following error</p>
  
  <p><a href="https://i.stack.imgur.com/02m7h.png" rel="noreferrer"><img src="https://i.stack.imgur.com/02m7h.png" alt="enter image description here"></a></p>