Trust Relationship Error AssumeRole policy may only specify STS AssumeRole actions


I am trying to add trust relationships to allow codedeploy to work for my role

I have the following json

I keep getting the following error

enter image description here


You are mixing two different concepts in the policy: trust relationship and IAM actions.

You need to have two different policies, one for the IAM Role like:

and other for the IAM Policy as:

Leave a Reply