AWS S3 Java: doesObjectExist results in 403: FORBIDDEN

后端 未结 4 1671
余生分开走
余生分开走 2021-01-07 09:09

I\'m having trouble with my Java program using the AWS SDK to interact with an S3 bucket.

This is the code I use to create an S3 client:

public S3Sto         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-07 09:38

    Make sure the date time is set correctly on the machine you are making the request from, otherwise you will get a 403.

提交回复
热议问题