I am trying to create a policy according to a document in amazon doc. But I came across this error as "An error has occurred: the policy document should not indicate the principal"
Doc below: http://docs.aws.amazon.com/vm-import/latest/userguide/import-vm-image.html
Any idea how to solve this problem?
Sorry if I jump here too late, but it looks like you are trying to create a policy based on IAM credentials and cannot use the Principal element in a policy based on IAM credentials.
You can find out more here: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html