My app was working normally, however I had to delete the user that set up the aws infrastructure due to unauthorised access. Now I cannot upload anything to the app. On console I got this error:
Failed to load resource: the server responded with a status of 403 (Forbidden)
Response {type: "cors", url: "https://my-bucket.s3.amazonaws.com/", redirected: false, status: 403, ok: false, …}
And then on Sources I got this:
InvalidAccessKeyId
The AWS Access Key Id you provided does not exist in our records.
The code of the app is set up like this:
import { uploadFile } from 'react-s3';
const Services = {
S3Upload: (file) => {
const config = {
bucketName: process.env.S3_BUCKET,
region: process.env.S3_REGION,
accessKeyId: process.env.S3_API_ACCESS_KEY,
secretAccessKey: process.env.S3_API_SECRET_KEY,
};
return uploadFile(file, config);
},
};
export const { S3Upload } = Services;
export default Services;
Could you please help me update the access keys with the ones of my current user? It's diving me crazy. Thank you!