Coder Social home page Coder Social logo

qinjie / fonts-aws-lambda-layer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brandonlim-hs/fonts-aws-lambda-layer

0.0 0.0 0.0 8 KB

AWS Lambda Layer that allows fonts to be used in Lambda function

License: MIT License

Dockerfile 21.61% Shell 60.04% Makefile 18.35%

fonts-aws-lambda-layer's Introduction

Fonts on AWS Lambda Layer

Allows fonts to be used in Lambda function.

Getting Started

  1. Add this layer to Lambda function by providing the layer version ARN.
  2. Add FONTCONFIG_PATH=/opt/etc/fonts environment variable to Lambda function.

Version ARNs

Amazon Linux fonts

These layers include fonts that were available in Amazon Linux operating system.

Region ARN
ap-east-1 arn:aws:lambda:ap-east-1:347599033421:layer:amazon_linux_fonts:1
ap-northeast-1 arn:aws:lambda:ap-northeast-1:347599033421:layer:amazon_linux_fonts:1
ap-northeast-2 arn:aws:lambda:ap-northeast-2:347599033421:layer:amazon_linux_fonts:1
ap-south-1 arn:aws:lambda:ap-south-1:347599033421:layer:amazon_linux_fonts:1
ap-southeast-1 arn:aws:lambda:ap-southeast-1:347599033421:layer:amazon_linux_fonts:1
ap-southeast-2 arn:aws:lambda:ap-southeast-2:347599033421:layer:amazon_linux_fonts:1
ca-central-1 arn:aws:lambda:ca-central-1:347599033421:layer:amazon_linux_fonts:1
eu-central-1 arn:aws:lambda:eu-central-1:347599033421:layer:amazon_linux_fonts:1
eu-north-1 arn:aws:lambda:eu-north-1:347599033421:layer:amazon_linux_fonts:1
eu-west-1 arn:aws:lambda:eu-west-1:347599033421:layer:amazon_linux_fonts:1
eu-west-2 arn:aws:lambda:eu-west-2:347599033421:layer:amazon_linux_fonts:1
eu-west-3 arn:aws:lambda:eu-west-3:347599033421:layer:amazon_linux_fonts:1
sa-east-1 arn:aws:lambda:sa-east-1:347599033421:layer:amazon_linux_fonts:1
us-east-1 arn:aws:lambda:us-east-1:347599033421:layer:amazon_linux_fonts:1
us-east-2 arn:aws:lambda:us-east-2:347599033421:layer:amazon_linux_fonts:1
us-west-1 arn:aws:lambda:us-west-1:347599033421:layer:amazon_linux_fonts:1
us-west-2 arn:aws:lambda:us-west-2:347599033421:layer:amazon_linux_fonts:1

Stix fonts

These layers include stix fonts.

Region ARN
ap-east-1 arn:aws:lambda:ap-east-1:347599033421:layer:stix-fonts:1
ap-northeast-1 arn:aws:lambda:ap-northeast-1:347599033421:layer:stix-fonts:1
ap-northeast-2 arn:aws:lambda:ap-northeast-2:347599033421:layer:stix-fonts:1
ap-south-1 arn:aws:lambda:ap-south-1:347599033421:layer:stix-fonts:1
ap-southeast-1 arn:aws:lambda:ap-southeast-1:347599033421:layer:stix-fonts:1
ap-southeast-2 arn:aws:lambda:ap-southeast-2:347599033421:layer:stix-fonts:1
ca-central-1 arn:aws:lambda:ca-central-1:347599033421:layer:stix-fonts:1
eu-central-1 arn:aws:lambda:eu-central-1:347599033421:layer:stix-fonts:1
eu-north-1 arn:aws:lambda:eu-north-1:347599033421:layer:stix-fonts:1
eu-west-1 arn:aws:lambda:eu-west-1:347599033421:layer:stix-fonts:1
eu-west-2 arn:aws:lambda:eu-west-2:347599033421:layer:stix-fonts:1
eu-west-3 arn:aws:lambda:eu-west-3:347599033421:layer:stix-fonts:1
sa-east-1 arn:aws:lambda:sa-east-1:347599033421:layer:stix-fonts:1
us-east-1 arn:aws:lambda:us-east-1:347599033421:layer:stix-fonts:1
us-east-2 arn:aws:lambda:us-east-2:347599033421:layer:stix-fonts:1
us-west-1 arn:aws:lambda:us-west-1:347599033421:layer:stix-fonts:1
us-west-2 arn:aws:lambda:us-west-2:347599033421:layer:stix-fonts:1

Environment variable

Define the following environment variable for the Lambda function:

Key Value
FONTCONFIG_PATH /opt/etc/fonts

Build and Publish

Refer to the Makefile to build and publish your own fonts layer.

Scripts

Script Description
./build.sh Build a new layer zip
./publish.sh Publish the layer zip to regions specified in /config/regions.txt

fonts-aws-lambda-layer's People

Contributors

brandonlim-hs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.