Amazon S3 hardcode my bucket URL -


i using amazon s3 store images web app , ios app.

i wonder if can safely hardcode bucket url when fetching images? don't have make 1 more api call fetch url.

for example, hardcoding in apps code:

https://s3.eu-central-1.amazonaws.com/mybucket/images/{some_var} 

just add - can in 2 ways

  1. virtual-hosted–style url (bucket name part of domain name in url)
    • http://bucket-name.s3.amazonaws.com/<file-name>
    • http://bucket-name.s3-aws-region.amazonaws.com/<file-name>
  2. path-style url (bucket name not part of domain , endpoint use must match region in bucket resides[except n. virginia])
    • http://region-name.amazonaws.com/bucket-name/<file-name>

detail read:
http://docs.aws.amazon.com/amazons3/latest/dev/usingbucket.html


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -