Amazon S3 AccessDenied, , .
AWS SDK
AWS SDK. , , / .
1) AM, , IAM , [ ], API, API S3.
2 , S3 .
3) , , AWS CL.
4) AWS iam get-user, , .
{ "User": { "UserName": "MY_DEFAULT_USER_NAME", "PasswordLastUsed": "2017-03-15T01:59:05Z", "CreateDate": "2016-04-30T02:46:19Z", "UserId": "ABCDEFGHIJKLMNOPQ", "Path": "/", "Arn": "arn:aws:iam::123456789:user/MY_DEFAULT_USER_NAME" } }
5) Verify that the environment variable can be AWS keys in my environment variables.
6) For SDS SDK troubleshooting requests, a pair of request identifiers will look like this.
status Code: 403, AWS Service: Amazon S3, AWS Request ID: 79104EXAMPLEB723
AWS Error Code: AccessDenied AWS Error Message: Access Denied
S3 Extended Request ID: IOWQ4fDEXAMPLEQM+ey7N9WgVhSnQ6JEXAMPLEZb7hSQDASK+Jd1vEXAMPLEa3Km
7) Verification The endpoint is correct in the code, there must be a valid endpoint.
source
share