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

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

问题描述

有没有人知道 AWS Lambda 的 EC2 中的 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.

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

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.

最简单的方法是通过操作系统包含它们.

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天全站免登陆