简体   繁体   中英

s3 putObject access denied

I have full permission to my s3 User login:

{
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:*",
      "Resource": "*"
    }
  ]
}

There is no group policy attached to this user. But when I give putObject() command from my java program, I receive Access Denied message. What can be the issue. As I told my user login has administrator access as well as AmazonS3FullAccess. Thanks for help in advance.

I got the issue resolved. It was not about firewall or permissions settings as I thought. I was trying to do putObject on bucket which I should have created before doing this. Inspite of saying no bucket found AWS gives a message Access Denied, which is wierd.

Hope this helps someone.

You should make sure whether your IP address is allowed or not. For Amazon Services, you can restrict access using IP addresses too. I had the same issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM