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.
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.
- asked 4 months ago
- asked 3 years ago
- Accepted Answerasked 2 months ago
- How do I troubleshoot the "Invalid S3 location" error when I try to save the Athena query results on an S3 bucket?AWS OFFICIALUpdated 2 years ago
- Why am I getting the error "Invalid principal in policy" when I try to update my Amazon S3 bucket policy?AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 months ago