Right now, there are two image resolver options: id + '.tif' and the CloudFront preflight function. To add some flexibility, we should accept an optional printf-style template that the ID gets applied to. (e.g., '%s.tif', /path/to/images/%s.pyramid.tif).
Done Looks Like
[ ] Built-in resolver accepts a resolverTemplate environment variable
[ ] SAM templates updated to include resolverTemplate variable
Description
Right now, there are two image resolver options:
id + '.tif'
and the CloudFront preflight function. To add some flexibility, we should accept an optional printf-style template that the ID gets applied to. (e.g.,'%s.tif'
,/path/to/images/%s.pyramid.tif
).Done Looks Like
resolverTemplate
environment variableresolverTemplate
variable