This allows you to deploy a serverless image CDN with image resizing, processing and caching on AWS in a couple of easy steps.
It uses s3, s3 website hosting, api gateway, lambda and optionally cloud front.
Config can be either added to a .env
file, as system properties or a combination of both.
The following settings need to be provided:
AWS_ACCESS_KEY_ID=YOURAWSAKID
AWS_SECRET_ACCESS_KEY=YOURAWSSAK
AWS_REGION='eu-west-1' # your aws region
SOURCE_S3_BUCKET_NAME=the-s3-dns-compat-bucket-name
npm install && npm run deploy
TODO
Config can be either added to a .env
file, as system properties or a combination of both.
The following settings need to be provided:
AWS_ACCESS_KEY_ID=YOURAWSAKID
AWS_SECRET_ACCESS_KEY=YOURAWSSAK
AWS_REGION='eu-west-1' # your aws region
CLOUD_FRONT_DOMAIN=your.cdn.dot.your.domain.name.com
CLOUD_FRONT_HOSTED_ZONE=your.domain.name.com. (NOTE trailing dot is important as its part of the hosted zone name)
CLOUD_FRONT_CERT_ARN=yourCertArn
Just a warning, its takes ages to initialize a cloudfront instance so this step takes a while...
npm install && npm run deploy