AWS offers behavior rules at CloudFront, where you can define rules with path patterns and origin, origin group. The incoming requests will be redirected to the defined origin. For example a behavior rule could be:
Path pattern: /image/*
Origin: [space]/tmp
For example the incoming request /image/file1.png will be redirected to /tmp/file.1png