Browse Source

update bucket

lang 4 năm trước cách đây
mục cha
commit
435b6df6ba
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Controller/CloudStorage.py

+ 2 - 2
Controller/CloudStorage.py

@@ -359,8 +359,8 @@ class CloudStorageView(View):
                         {
                             "Effect": "Allow",
                             "Action": "s3:*",
-                            "Resource": ["arn:aws:s3:::azvod1/{uid_channel}/*".
-                                             format(uid_channel=storage)]
+                            "Resource": ["arn:aws:s3:::{bucket_name}/{uid_channel}/*".
+                                             format(bucket_name=bucket_name,uid_channel=storage)]
                         }
                     ]
                 }