S3 Bucket creation problems

0

I'm stuck on Exercise 5: Create an Amazon S3 Bucket.

I can get to task 3 Modifying the S3 bucket policy But, when I try to save the policy I receive an unknown error.

Upon clicking on the API response "Invalid principal in policy"

I'm not sure if I missed a critical step in the earlier parts of this course or not.

  • You should provide the policy.

2개 답변
0

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.

profile picture
전문가
답변함 일 년 전
  • 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

0

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.

https://repost.aws/questions/QUmodGMPJ9TjavI3CFUhAwLQ/bucket-policy-error-invalid-json#ANeS5LP3Y0Sf6sRXYC-uNpcg

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠