- Node.js (see package.json for compatible version range)
- posix-compatible environment with
bash,makeetc. - Serverless Framework
- Clone this repo
- Create or edit your ~/.aws/credentials file and add a profile named
serverless-resizerwith valid credentials:
[serverless-resizer]
aws_access_key_id =
aws_secret_access_key =
aws_region = eu-east-1make- This will install all dependencies
TODO
Infrastructure is managed using Terraform. The configuration files can be found in the infrastructure directory.
To run terraform commands locally, you need to have the following set up:
- An
serverless-resizerAWS profile defined in your ~/.aws/credentials file
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 commandterraform fmt: Lint and re-format terraform filesterraform plan: Show what terraform will do to the infrastructure to match current configurationterraform apply: (DO NOT RUN LOCALLY) Apply changes to the infrastructure
It is a docker container wrapper that behaves like a locally installed CLI utility. 💪