I am saving a key to a bucket with:
key = bucket.new_key(fileName) key.set_contents_from_string(base64.b64decode(data)) key.set_metadata(\'Content-Ty
For Boto3, you need to do it the following way...
import boto3 s3 = boto3.client('s3') url = '{}/{}/{}'.format(s3.meta.endpoint_url, bucket, key)