#python-3.x #amazon-s3 #boto #amazon-cloudfront
#python-3.x #amazon-s3 #бото #amazon-cloudfront
Вопрос:
def upload():
conn=boto.connect_s3(AWS_S3_ACCESS_KEY_ID,AWS_S3_SECRET_ACCESS_KEY,host=REGION_HOST)
distribution = Distribution(connection=conn, config=None, domain_name='', id='', last_modified_time=None, status='')
objurl="cloudfront url to my image in s3 bucket"
url = distribution.create_signed_url(url=objurl, keypair_id=KEYPAIR_ID)
Ошибка:
Type error :a bytes-like object is required, not 'str'
Использование: boto 2.42, Python 3.5