jeudi 1 octobre 2015

AWS Cloudfront - and filenames upon deploying

I was wondering if it's possible to manipulate or change the names of files upon deploying the distribution.

Reason for during this, is that we don't have the actual files on our own servers but is provided by a partner. Is it somehow possible to run a php function upon deploy to change the name of the file on the cdn ?

So eg.

http://ift.tt/1O5eh7U

to

http://ift.tt/1KOm6g4

One way is to import all images first to local storage and upon that download change filename - but seems very extensive.

As we can provide the image name easy if it's possible to run a php function upon deploying.




Aucun commentaire:

Enregistrer un commentaire