Getting “The AWS Access Key Id you provided does not exist in our records” with temporary credentials in aws


Getting “The AWS Access Key Id you provided does not exist in our records” with temporary credentials in aws



I am running a react app which takes temporary credentials like access key id, secret key and session token from a java spring boot API.



The access key id looks like this ASIAJ2EXAMPLE.
However, it works if I give a permanent access key id which looks like AKIAJ3EXAMPLE.
But every time I get an error that the


ASIAJ2EXAMPLE



"The AWS Access Key Id you provided does not exist in our records"



I have doubts that could it be because of regions or session token. I just want somebody to point me in the right direction.
The react credentials look like:


AWS.config.credentials = new AWS.Credentials(check.context.entity.awsaccessKeyId, check.context.entity.awssecretKey,check.context.entity.sessionToken);
var BucketName = 'xyz';
var s3 = new AWS.S3({
apiVersion: '2006-03-01',
region: 'us-east-1',
params: {Bucket: BucketName,
ServerSideEncryption: "AES256"}
});









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

api-platform.com Unable to generate an IRI for the item of type

How to set up datasource with Spring for HikariCP?

Display dokan vendor name on Woocommerce single product pages