Skip to content

Local environment for testing purposes #541

Answered by simonkrol
YasenMakioui asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @YasenMakioui,

As SIH retrieves the image to be processed directly from S3, we don't currently support using SIH through a local environment. There are some tests under source/image-handler/test/index.spec.ts which run through most of the process locally, you could look into modifying how the GetObject call is mocked to provide the image you're interested in testing. Our recommendation is to perform testing on an instance of SIH deployed to AWS through cdk deploy, allowing you to make changes to the application and update the stack quickly and efficiently through the command line (More info available in the README).

Thanks for your interest in Serverless Image Handler,
Simon

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@simonkrol
Comment options

Answer selected by simonkrol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants