I have given 'everyone' as all permissions in AWS s3 bucket permissions.
Ia m using django. I am able to read the files but i am not able to write it.
I am trying this
>>> print default_storage.connection
S3Connection:s3.amazonaws.com
>>> from django.core.files.base import ContentFile
>>> from django.core.cache import cache
>>> default_storage.exists('testkey')
True
>>> file = default_storage.open('storage_test', 'w')
>>> file.write('storage contents')
Traceback (most recent call last):
S3ResponseError: S3ResponseError: 403 Forbidden
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>FDD54
I have added this in settings
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
AWS_ACCESS_KEY_ID='XXXXXXXXXXXXXXA'
AWS_SECRET_ACCESS_KEY='XXXXXXX'
AWS_STORAGE_BUCKET_NAME='testbucket'
I am also confused how to django s3 knows which user to use from s3 . i am confused. The access key is for the user_123
which i created but in permission i am not able to see that user in aws s3 dropdown