[英]AWS S3 cannot upload file with spring boot
when i do a post request i gave following logs.当我发出帖子请求时,我给出了以下日志。
2020-11-15 16:44:31.568 INFO 22872 --- [nio-8080-exec-5] com.aws.awss3.serviceimpl.AmazonClient : Caught an AmazonServiceException from GET requests, rejected reasons:
2020-11-15 16:44:31.568 INFO 22872 --- [nio-8080-exec-5] com.aws.awss3.serviceimpl.AmazonClient : Error Message: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: ********** ; S3 Extended Request ID: YMIe4OqTzt0f84HP4L8S0mjpuL2RL25bV/mqyK5iX0+M9lKjDdn/Q1sBfjwd2scCu9BOUxoPqkM=; Proxy: null)
2020-11-15 16:44:31.568 INFO 22872 --- [nio-8080-exec-5] com.aws.awss3.serviceimpl.AmazonClient : HTTP Status Code: 403
2020-11-15 16:44:31.568 INFO 22872 --- [nio-8080-exec-5] com.aws.awss3.serviceimpl.AmazonClient : AWS Error Code: AccessDenied
2020-11-15 16:44:31.568 INFO 22872 --- [nio-8080-exec-5] com.aws.awss3.serviceimpl.AmazonClient : Error Type: Client
2020-11-15 16:44:31.569 INFO 22872 --- [nio-8080-exec-5] com.aws.awss3.serviceimpl.AmazonClient : Request ID: ############
I think the error message is pretty self explanatory.我认为错误消息很容易解释。 You don't have the correct permissions to access / update the S3 bucket.
您没有访问/更新 S3 存储桶的正确权限。 Check the S3 bucket policy / configuration.
检查 S3 存储桶策略/配置。
Please check your IAM role.请检查您的 IAM 角色。 You should be provided with s3 write access to proceed
您应该获得 s3 写入权限才能继续
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.