Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

V2-Digital/image-optimisation-module

Open more actions menu

Repository files navigation

Note: Please ensure NPM is installed on the machine deploying the terraform

TODO:

  • [] Implement automated release pipeline to build lambda code
  • [] Consider moving lambda code into s3 & injecting environment variables in as a file
  • [] Consider what to do about cache control

Running locally.

To run you will need to have docker installed on your local machine.

Once that has been setup you will need to set the following environment variables:

AWS ENVIRONMENT VARIABLES

  AWS_ACCESS_KEY_ID
  AWS_SECRET_ACCESS_KEY
  AWS_SESSION_TOKEN
  AWS_REGION

APPLICATION ENVIRONMENT VARIABLES

  IMAGE_STORE_BUCKET=<NAME OF THE S3 BUCKET THE IMAGES ARE STORED IN>

Once these have been setup you will be able to execute the following command to get a mock image optimiser running locally.

  make run

Consider this server as a immitation of what cloudfront does when handling request.

You can test that function behaves as expected by opening your browser and navigating to the following url:

http://localhost:3000/<IMAGE_PATH>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.