-
Hello everyone, I didn't find any documentation on the subject |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @A-Goud! Thanks for getting back to us with your question. You are right that there is no way to specify a "stable" name for the objects stored by the S3 Storage Connector. We've thought about allowing users to specify a template to apply to the naming of objects, but haven't pushed this feature yet due to security concerns. What we would like to do is allow users to specify a prefix to the S3 Storage Connector controlling where to store the object in the bucket : const connector = new S3StorageConnector.Builder()
.withScope(this)
.withIdentifier('S3StorageConnector')
.withCacheStorage(cache)
.withSource(source)
.withDestinationBucket({
bucket,
prefix: 'images/'
})
.build(); For your use-case, since you need to know the name of the objects, would using S3 event notifications on the destination bucket allow you to store the objects on another system and fulfill your use-case? Or alternatively, using the SQS Storage Connector instead and control the writes to S3 yourself with a Lambda consuming from the SQS queue? |
Beta Was this translation helpful? Give feedback.
Hi @A-Goud! Thanks for getting back to us with your question.
You are right that there is no way to specify a "stable" name for the objects stored by the S3 Storage Connector. We've thought about allowing users to specify a template to apply to the naming of objects, but haven't pushed this feature yet due to security concerns.
What we would like to do is allow users to specify a prefix to the S3 Storage Connector controlling where to store the object in the bucket :