lundi 12 octobre 2015

spring cloud aws s3 forbidden 403 error

I am trying to use spring cloud aws to access a file in a s3 bucket. I get a Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden); error from com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:726)

I wrote another program to access the same file with the same accesskey using the AWS Java SDK directly and that works fine. So I think it's some configuration issue with spring cloud aws maybe? I have looked through the documentation multiple times and I cannot find what I am doing wrong.

I know I have configured the credentials in spring cloud aws correctly (in application.properties) because I am able to access sqs using Spring Cloud AWS messagingtemplate.

Any help/suggestions will be appreciated.




Aucun commentaire:

Enregistrer un commentaire