An error occurred: Policy document should not specify a principal

10,710

Sorry if I'm jumping too late here, but looks like may be you are trying to create IAM identity-based policy and you cannot use the Principal element in an IAM identity-based policy.

You can learn more from here: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html

Share:
10,710

Related videos on Youtube

thulasi39
Author by

thulasi39

Updated on September 15, 2022

Comments

  • thulasi39
    thulasi39 over 1 year

    I am trying to create the policy as per the document in amazon doc. But I am facing this error as "An error occurred: Policy document should not specify a principal"

    Doc below: http://docs.aws.amazon.com/vm-import/latest/userguide/import-vm-image.html

    Any idea how to resolve this?

    • Michael - sqlbot
      Michael - sqlbot
      There are two different kinds of policies mentioned on the page you referenced. Which step are you working on, and what does your policy look like? More clarification is needed.