创建桶
使用create_bucket创建存储桶
def create_bucket(bucket_name):
# Create bucket
try:
resp = s3_client.create_bucket(Bucket=bucket_name)
print(resp)
except ClientError as e:
logging.error(e)
使用create_bucket创建存储桶
def create_bucket(bucket_name):
# Create bucket
try:
resp = s3_client.create_bucket(Bucket=bucket_name)
print(resp)
except ClientError as e:
logging.error(e)