models_1.py 260 B

1234567
  1. def _connect_to_S3_bucket(self, s3, bucket_name):
  2. s3_bucket = s3.Bucket(bucket_name)
  3. exists = s3_helper.bucket_exists(s3, bucket_name)
  4. if not exists:
  5. s3_bucket = s3.create_bucket(Bucket=bucket_name)
  6. return s3_bucket