Amazon S3 - Multiple keys to one object -


i have s3 bucket more 100 million objects in each object has unique key usual. wondering if there way assign key of these objects. this:

key1 ---> object1

key2 ---> object2

key3 ---> object2 (i'd add this)

i looked in aws documentation couldn't find relevant.

another approach create dummy object key3 redirects actual object. easier?

a key unique identifier object:

from object key , metadata

each amazon s3 object has data, key, , metadata. object key (or key name) uniquely identifies object in bucket.

another approach create dummy object key3 redirects actual object. easier?

yes this: use user defined object metadata create key3, , in metadata define key/value pair this:

x-amz-meta-keyalias=key2 

that metadata expresses key alias key.

your app read metadata, , redirect request key3 key2.

if bucket exposed public website, implement form of redirection. update: works object type/extension, when using website endpoint


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -