Skip to content

jlsan92/serverless-image-resizer

Repository files navigation

Serverless Image Resizer

Build Status Coverage Status

Prerequisites

  • Node.js (see package.json for compatible version range)
  • posix-compatible environment with bash, make etc.
  • Serverless Framework

Installing

  • Clone this repo
  • Create or edit your ~/.aws/credentials file and add a profile named serverless-resizer with valid credentials:
[serverless-resizer]
aws_access_key_id =
aws_secret_access_key =
aws_region = eu-east-1
  • make - This will install all dependencies

Usage

TODO

Infrastructure

Infrastructure is managed using Terraform. The configuration files can be found in the infrastructure directory.

Requirements

To run terraform commands locally, you need to have the following set up:

  • An serverless-resizer AWS profile defined in your ~/.aws/credentials file

Terraform utility

You need not have terraform installed on your computer - you can use the local ./bin/terraform command to run anything terraform-related, ie.:

  • terraform init: Required before executing any command
  • terraform fmt: Lint and re-format terraform files
  • terraform plan: Show what terraform will do to the infrastructure to match current configuration
  • terraform apply: (DO NOT RUN LOCALLY) Apply changes to the infrastructure

It is a docker container wrapper that behaves like a locally installed CLI utility. 💪

About

Dummy Serverless Image Resizer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published