profile
viewpoint

Ask questionsOld s3 path styles deprecated

s3 is not honoring the old path style for much longer (Deadline: Sept 2020)

it also seems that new buckets are not supported with the old style at all

Old

  • https://s3.amazonaws.com/<bucket>/<key>
  • https://s3-<region>.amazonaws.com/<bucket>/<key>

.

  • https://s3.amazonaws.com/jbarr-public/images/ritchie_and_thompson_pdp11.jpeg
  • https://s3-us-east-2.amazonaws.com/jbarr-public/images/ritchie_and_thompson_pdp11.jpeg

New

  • https://<bucket>.s3.amazonaws.com/<key>
  • https://jbarr-public.s3.amazonaws.com/images/ritchie_and_thompson_pdp11.jpeg

Reference

See https://aws.amazon.com/blogs/aws/amazon-s3-path-deprecation-plan-the-rest-of-the-story/

mhart/aws4

Answer questions mhart

I've fixed the parsing aspect of this in v1.10.0

I think you're right that somehow constructing the host if the user has given the bucket in the path would be a bit problematic to stay backwards compatible, so I'm not going to support that.

I think from now on people will just need to specify the host when they want to query a particular bucket – aws4 should figure out the region and service correctly from there.

useful!

Related questions

Credential must have exactly 5 slash-delimited elements hot 2
Github User Rank List