1 Answer
0
Are the access keys the same on both machines? Is there a bucket policy restricting by SourceIp or other condition, like VPC?
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
{ "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