-
-
Notifications
You must be signed in to change notification settings - Fork 579
Open
Milestone
Description
Steps to reproduce:
- Install and configure module as described in docs
- Don't create bucket in AWS
- You'll get an error like "Access denied"
How it should work:
If bucket name passed in s3.bucket
doesn't exist in AWS S3 then it must be created.
Where to fix:
misc-addons/ir_attachment_s3/models/res_config_settings.py
Lines 45 to 52 in fa47493
s3 = boto3.resource( | |
"s3", aws_access_key_id=access_key_id, aws_secret_access_key=secret_key | |
) | |
bucket = s3.Bucket(bucket_name) | |
if not bucket: | |
s3.create_bucket(Bucket=bucket_name) | |
bucket = s3.Bucket(bucket_name) | |
return bucket |
the bucket
variable is True
even if there is no buckets in S3.
It was mentioned here
Metadata
Metadata
Assignees
Labels
No labels