why aws s3 access denied on ubuntu but works on macos?

0

Hi, just wondering why I try to upload an image on ubuntu OS but the got the error code 403. The following is the screenshot of the error message: Enter image description here

However, when I try the same code on my MAC OS, everything works fine. I can upload the image to bucket. Does anyone know why? Soooo urgent!!!

질문됨 일 년 전208회 조회
1개 답변
0

Are the access keys the same on both machines? Is there a bucket policy restricting by SourceIp or other condition, like VPC?

profile pictureAWS
전문가
kentrad
답변함 일 년 전
  • { "Version": "2012-10-17", "Id": "Policy1668353125443", "Statement": [ { "Sid": "Stmt1668353113542", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::458714226056:user/wenjie-new" }, "Action": "s3:", "Resource": "arn:aws:s3:::adp-learning" }, { "Effect": "Allow", "Principal": "", "Action": [ "s3:GetObject", "s3:GetObjectVersion", "s3:PutObject" ], "Resource": "arn:aws:s3:::adp-learning/*" } ] }

    Here is my bucket policy. I don't think I set any restriction on SourceIP or other condition. The thing I am confused is why it works on Mac but not on Ubuntu...

  • Run the following command on both machines: aws sts get-caller-identity

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

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

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

관련 콘텐츠