- Newest
- Most votes
- Most comments
Hi PatCarter,
have a look at this Repost guide about troubleshooting Invalid principal error: https://repost.aws/knowledge-center/s3-invalid-principal-in-policy-error.
If it does not help, please provide more details on what tutorial you are following so we can get it solved.
Hello, I am doing the Coursera AWS Cloud Technical Essentials. Week 3 it is having me create an employee database, upload a picture and then modify the bucket policy.
These are the instructions it provided that I am following but I am stumped. :( https://aws-tc-largeobjects.s3-us-west-2.amazonaws.com/DEV-AWS-MO-GCNv2/exercise-5-storage.html
Did you go through above guide? If so, can you share the policy you added to the S3 bucket?
This is what I pasted in per the instructions.
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowS3ReadAccess", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::123456789012:role/S3DynamoDBFullAccessRole" }, "Action": "s3:", "Resource": [ "arn:aws:s3:::employee-photo-bucket-al-907", "arn:aws:s3:::employee-photo-bucket-al-907/*" ] } ] }
Should be "Action": "s3:*",
I tried it with and without. This exercise is making me feel really dumb lol It's not showing any errors until I try to save it. Then I get API response Invalid principal in policy
This may not be the same issue, but recently we received a question that sounded a lot like this one in rePost. Here's the question and its answers. I hope this helps.
The above post has a comment that says this:
The idea is that I copied the code from AWS Cloud Technical Essentials course in Cousera, and followed the exact instruction, but it's very depressing to find such mistakes https://aws-tc-largeobjects.s3-us-west-2.amazonaws.com/DEV-AWS-MO-GCNv2/exercise-5-storage.html
Relevant content
- asked 4 months ago
- asked 3 years ago
- asked 3 years ago
- Accepted Answerasked 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 months ago
You should provide the policy.