在AWS Lambda中包含自定义字体 [英] Include custom fonts in AWS Lambda

查看:119
本文介绍了在AWS Lambda中包含自定义字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道EC2中适用于AWS Lambda的 ebextensions [2]吗?

Does Anyone know something like ebextensions[2] in EC2 for AWS Lambda?

目标是在AWS Lambda执行环境中安装自定义字体.

The goal is to install custom fonts in the AWS Lambda execution environment.

有很多方法可以为库和工具提供字体,但是最简单的方法是通过OS包含它们.

There are many ways to provide libraries and tools with fonts but the easiest way would be to include them via OS.

还在AWS论坛上回答: https://forums.aws.amazon.com/thread.jspa ?messageID = 807139&#807139

Also asked in response on AWS forum: https://forums.aws.amazon.com/thread.jspa?messageID=807139&#807139

[2] 如何在我的AWS EC2实例?

推荐答案

论坛帖子上的AWS官方回复仍然正确.

The official AWS response on the forum post is still correct.

当前,无法自定义Lambda环境.如果您需要其他软件包,则可以在Amazon Linux上构建并将其放入您上传的zip文件中.

Currently, it is not possible to customize Lambda environment. If you want additional packages you can build on Amazon Linux and put them into the zip file you upload.

这就是您可以在Lambda环境中安装"任何东西的程度.

That's the extent to which you can "install" anything in the Lambda environment.

最简单的方法是通过OS包含它们.

the easiest way would be to include them via OS.

可以这么说,但这不是Lambda的工作原理.

Arguably so, but that's simply not how Lambda works.

这篇关于在AWS Lambda中包含自定义字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆