Hi, Thank you so much, can you make sure that AWS credentials exist for this app? can I get these variable values for my testing on local? the values which are present in my .env file, I am getting this error
An error occurred (InvalidAccessKeyId) when calling the PutObject operation: The AWS Access Key Id you provided does not exist in our records.
Yes, the credentials do exist in the production environment. In fact, they were last used today and you have files in your AWS S3, so you project must be/have been configured properly.
We do not provide key values for security reasons - they exist only in the production environment and are subject to change.
Usually, as you follow the BOTO S3 documentation, which in the case of our scaffold is a few lines changed in the configuration, it works as expected.
Locally, we encourage to use the standard file storage.
@ramzi, you need to make sure that the links you generate reflect your actual directory structure on AWS S3. AWS will by default always return NotAuthorized errors, even when files are not found.
Thanks @dmitrii.k for your usuall support. i will check what you recommended with @umer.siddiq and if we cant resolve it with him, we will check with an additonal backend engineer to fix that so we can move forward.
It was again @dmitrii.k who supported us on the issue and pointed what going wrong. actually the issue was with Django, in our case image was being downloaded from a URL and then storing using a model which was actually disturbing the file structure. the following piece of code did the actual trick
location = Location(name=name.text, lat=lst_coordinate[1],long=lst_coordinate[0],category=category)
if image is not '':
with open(image,'rb') as f:
data = f.read()
location.image.save(image_name, ContentFile(data))