S3のgenerate_presigned_urlで得られたURLを用いたときにSignatureDoesNotMatchが返ってくるときの解決法

Aug. 20, 2019, 4:53 a.m. edited Dec. 21, 2019, 5:24 a.m.

#AWS  #Python 

https://github.com/boto/boto3/issues/1644#issuecomment-434566036 にあるように,

import boto3
from botocore.config import Config

s3 = boto3.client('s3', config=Config(s3={'addressing_style': 'path'}, signature_version='s3v4'))

でモダンな使えるURLが返ってくるようになる.