# shorthand-lambda **Repository Path**: mirrors_Financial-Times/shorthand-lambda ## Basic Information - **Project Name**: shorthand-lambda - **Description**: Lambda scripts for modifying Shorthand output - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-07-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Shorthand Lambda #### _2017 Ændrew Rininsland and Andrew Georgiou, Financial Times_ > Serverless project for deploying Shorthand and Ceros content This is a Serverless project leveraging AWS Lambda and S3. It is based off [Ben Fletcher][1]'s excellent *[next-serverless-example][2]*. Use that for help [generating policies[3] and whathaveyounot. ## Usage 1. Install dependencies ```bash $ npm install ``` 2. Create .env file This file is used by Serverless to populate environment variables. It is not version controlled. ``` AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_ROLE=arn:aws:iam:::role/ AWS_DEPLOYMENT_BUCKET= AWS_STAGING_BUCKET= AWS_PROD_BUCKET= AWS_PROD_BUCKET_REGION= ``` 3. Deploy! ```bash $ make deploy ``` 4. :tada: ## Weirdness * We created our buckets via the console instead of using Serverless. This is a bad idea. Instead, you should configure the buckets as a resource in serverless.yml and let CloudFormation take care of them. This will ensure you don't need to manually create the S3 events in Lambda! ##### Special thanks to Vish Bhalla for helping with AWS config! [1]: https://github.com/bjfletcher [2]: https://github.com/Financial-Times/next-serverless-example [3]: https://github.com/Financial-Times/next-serverless-example#keys-role--deployment-bucket