This policy contains the following error: Has prohibited field Principal For more information about the IAM policy grammar,
See original GitHub issueThe policy on the tutorial does not work.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "GiveSESPermissionToWriteEmail",
"Effect": "Allow",
"Principal": {
"Service": "ses.amazonaws.com"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::S3-BUCKET-NAME/*",
"Condition": {
"StringEquals": {
"aws:Referer": "AWS-ACCOUNT-ID"
}
}
}
]
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
Resolve the IAM policy error "Has prohibited field Principal"
Resolution. Make sure policies using the Principal element are created with the AWS service associated with the AWS resource, not within IAM.
Read more >AWS Trust Policy Has prohibited field Principal - Stack Overflow
Based upon the error message, it seems like you're putting the trust policy in the normal spot, because Roles don't need a principle...
Read more >Unable to create trust policy for central account ... - GitHub
This policy contains the following error: Has prohibited field Principal For more information about the IAM policy grammar, see AWS IAM Policies ......
Read more >Policy has Prohibited field Principal AWS Error [Solved]
The "Policy has Prohibited field Principal" AWS error occurs because we're trying to set a Principal field on a permissions policy. The Principal...
Read more >Formatting IAM policy to grant S3 external permission
However, the console is not accepting it claiming: 'This policy contains the following error: Has prohibited field Principal." Thanks. Follow Comment.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can someone explain how you sort this out? I am having the same issue. Thanks
Got it to work.