lambda-build-deploy
Repository for all serverless functions
To build
./scripts/build
This has 6 steps:
- Building of private dependancies
- Building of code and public depenancies
- Injection of private dependancies into build
- Cleaning of build
- Compression of build
- Extraction of compressed build
No args.
To deploy
./scripts/deploy --region eu-west-1 --environment dev
This has 2 steps:
- Uploading code to appropriate s3 bucket with the appropriate filename
- Update function code from s3 bucket.
2 args:
-r | --region
: aws region to deploy to, requires full region name. - [us-east-1, eu-west-2]-e | --environment
: environment to deploy to, set possible values. - [dev, ci, test, prod]
Arguments default to:
-r | --region
= ci-e | --environment
= eu-west-1
Run commands together:
./scripts/build && ./scripts/deploy --region eu-west-1 --environment dev