com.amazonaws.services.s3.model.AmazonS3Exception:
The AWS Access Key Id you provided does not exist in our records.
(Service: Amazon S3; Status Code: 403;
Error Code: InvalidAccessKeyId;
Request ID: 8CYN8...QX4;
S3 Extended Request ID: /cXoTS2/Fl3Mj....2KjLCxUte4=; Proxy: null),
S3 Extended Request ID: /cXoTS2/Fl3M....KjLCxUte4=
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1819)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleServiceErrorResponse(AmazonHttpClient.java:1403)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1372)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1145)
If you are trying to access AWS S3 using the Java SDK and ProfileCredentialsProvider you get AmazonS3Exception InvalidAccessKeyId, the reason could be either of the below,
- You have provided an invalid aws_access_key_id in your AWS profile credentials in the .aws directory,
- The Access key must have expired,
- Check if the access key is not enclosed by double or single quotes, it should look something like the below,
% cat ~/.aws/credentials [default] aws_access_key_id = ABCDEYK2XYZANEEMOVA aws_secret_access_key = ABCDEFXyzhFNPwvctQ1X2DEK4k245aDh82a
- Create S3 bucket and upload files using AWS Toolkit for Visual Studio Code
- Get the total size and number of objects of a AWS S3 bucket and folders
- Create an S3 bucket in a specific AWS region using CLI Command
- [Solution] AWS Java SDK S3 AmazonS3Exception InvalidAccessKeyId
- Fix AWS CLI 2 SignatureDoesNotMatch Error - Signature we calculated does not match
- 573 List of reserved keywords in AWS DynamoDB
- Quick way to setup AWS DynamoDB locally on macOS
- [Solution] com.amazonaws.dynamodb.v20120810 MissingAuthenticationToken Key Id or X.509 certificate
- Quick way to install AWS CLI for macOS Terminal
- Setting and Updating AWS CLI Configuration
- AWS S3 CLI BucketAlreadyExists when calling CreateBucket Error make_bucket failed
- How to install AWS Toolkit for Visual Studio Code
- Create S3 bucket using AWS CLI Command mb
- Fix: zsh: command not found: aws (Mac/macOS)
- How to install AWS CLI on Ubuntu
- Fix: Amazon Linux bash: sudo: command not found
- How to Setup AWS Credentials using Visual Studio Code
- AW3 CLI command to get list of all region names
- Most Essencial AWS CLI 2 S3 ls Command Options
- Install AWS CLI using Brew Command
- MongoDB Hello World! Example - 2022
- PHP Fatal error : Call to a member function bind_param() on a non-object - PHP
- ModuleNotFoundError: No module named qdarkstyle.colorsystem [Python] - Python
- How to Uninstall Brew on Mac - MacOS
- hibernate.cfg.xml Configuration and Mapping xml Example - Java
- Pass data between two Android Activities and access it using Intent - Android
- How to detect Operating System using Java code - Java
- How to enable Do Not Disturb mode for Notification Center in Mac OS X 10.10 Yosemite - Mac-OS-X