Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An error occurred: Policy document should not specify a principal

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?

like image 485
thulasi39 Avatar asked Sep 19 '16 07:09

thulasi39


People also ask

Why am I getting the error invalid principal in policy when I try to update my Amazon s3 bucket policy?

You receive the "Error: Invalid principal in policy" message when the value of a Principal in your bucket policy is not valid. To resolve this error, confirm the following: Your bucket policy uses supported values for a Principal element. The Principal value is formatted correctly.

What does Principal mean in IAM policy?

A principal is a person or application that can make a request for an action or operation on an AWS resource. The principal is authenticated as the AWS account root user or an IAM entity to make requests to AWS. As a best practice, do not use your root user credentials for your daily work.


1 Answers

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

like image 137
Atish Kumbhar Avatar answered Sep 18 '22 22:09

Atish Kumbhar