🎥 Make videos programmatically with React
alright
Jonny Burgerf41d57d72338
diff --git a/packages/docs/docs/lambda/insights.mdx b/packages/docs/docs/lambda/insights.mdxindex 9d704ac526..b9b72c03c4 100644--- a/packages/docs/docs/lambda/insights.mdx+++ b/packages/docs/docs/lambda/insights.mdx@@ -65,6 +65,11 @@ A link to the Lambda insights is also included in the return value of [`renderMeIf you render via the CLI with the `--log=verbose` flag, a link to the Lambda insights is also printed, regardless of if Lambda insights are enabled or not.+## Unsupported regions++Lambda Insights is not supported by AWS in `ap-southeast-4`, `ap-southeast-5` and `eu-central-2`.+If you deploy a Lambda function in one of these regions and attempt to enable Lambda Insight, an error will be thrown.+## See also- [Debugging failed Lambda renders](/docs/lambda/troubleshooting/debug)diff --git a/packages/lambda/src/admin/make-layer-public.ts b/packages/lambda/src/admin/make-layer-public.tsindex 04b069ff20..cc6af86cfb 100644--- a/packages/lambda/src/admin/make-layer-public.ts+++ b/packages/lambda/src/admin/make-layer-public.ts@@ -31,12 +31,13 @@ const layerInfo: HostedLayers = {'me-south-1': [],'sa-east-1': [],'us-west-1': [],+ 'ap-southeast-4': [],+ 'ap-southeast-5': [],+ 'eu-central-2': [],};-const V5_RUNTIME = true;-const makeLayerPublic = async () => {- const runtimes: Runtime[] = [V5_RUNTIME ? 'nodejs20.x' : 'nodejs18.x'];+ const runtimes: Runtime[] = ['nodejs20.x'];const layers = ['fonts',@@ -55,16 +56,12 @@ const makeLayerPublic = async () => {S3Key:layer === 'emoji-apple'? 'remotion-layer-emoji-v1-arm64.zip'- : V5_RUNTIME- ? `remotion-layer-${layer}-v11-arm64.zip`- : `remotion-layer-${layer}-v10-arm64.zip`,+ : `remotion-layer-${layer}-v12-arm64.zip`,},LayerName: layerName,LicenseInfo:layer === 'chromium'- ? V5_RUNTIME- ? 'Chromium 123.0.6312.86, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'- : 'Chromium 114, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'+ ? 'Chromium 123.0.6312.86, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE': layer === 'emoji-apple'? 'Apple Emojis (https://github.com/samuelngs/apple-emoji-linux). For educational purposes only - Apple is a trademark of Apple Inc., registered in the U.S. and other countries.': layer === 'emoji-google'diff --git a/packages/lambda/src/api/create-function.ts b/packages/lambda/src/api/create-function.tsindex acd7a717a9..09e0a57501 100644--- a/packages/lambda/src/api/create-function.ts+++ b/packages/lambda/src/api/create-function.ts@@ -35,7 +35,6 @@ export const createFunction = async ({ephemerealStorageInMb,customRoleArn,enableLambdaInsights,- enableV5Runtime,logLevel,vpcSubnetIds,vpcSecurityGroupIds,@@ -53,7 +52,6 @@ export const createFunction = async ({ephemerealStorageInMb: number;customRoleArn: string;enableLambdaInsights: boolean;- enableV5Runtime: boolean;logLevel: LogLevel;vpcSubnetIds: string;vpcSecurityGroupIds: string;@@ -115,16 +113,8 @@ export const createFunction = async ({const layers = getLayers({option: runtimePreference,region,- enableV5Runtime,});- if (enableV5Runtime) {- RenderInternals.Log.verbose(- {indent: false, logLevel},- 'New V5 runtime enabled https://remotion.dev/docs/lambda/runtime#runtime-changes-in-remotion-50',- );- }-let vpcConfig: VpcConfig | undefined;if (vpcSubnetIds && vpcSecurityGroupIds) {vpcConfig = {@@ -138,6 +128,15 @@ export const createFunction = async ({'Deploying new Lambda function',);+ const insightsLayer = enableLambdaInsights+ ? lambdaInsightsExtensions[region]+ : null;+ if (enableLambdaInsights && !insightsLayer) {+ throw new Error(+ `Lambda Insights is not supported by AWS in region ${region}. Please disable Lambda Insights. See http://remotion.dev/docs/lambda/insights#unsupported-regions`,+ );+ }+const {FunctionName, FunctionArn} = await getLambdaClient(region).send(new CreateFunctionCommand({Code: {@@ -146,13 +145,13 @@ export const createFunction = async ({FunctionName: functionName,Handler: 'index.handler',Role: customRoleArn ?? defaultRoleName,- Runtime: enableV5Runtime ? 'nodejs20.x' : 'nodejs18.x',+ Runtime: 'nodejs20.x',Description: 'Renders a Remotion video.',MemorySize: memorySizeInMb,Timeout: timeoutInSeconds,Layers: layers.map(({layerArn, version}) => `${layerArn}:${version}`)- .concat(enableLambdaInsights ? lambdaInsightsExtensions[region] : []),+ .concat(insightsLayer ? [insightsLayer] : []),Architectures: ['arm64'],EphemeralStorage: {Size: ephemerealStorageInMb,@@ -234,10 +233,7 @@ export const createFunction = async ({'Locking the runtime version of the function...',);- const RuntimeVersionArn = enableV5Runtime- ? `arn:aws:lambda:${region}::runtime:da57c20c4b965d5b75540f6865a35fc8030358e33ec44ecfed33e90901a27a72`- : `arn:aws:lambda:${region}::runtime:b97ad873eb5228db2e7d5727cd116734cc24c92ff1381739c4400c095404a2d3`;-+ const RuntimeVersionArn = `arn:aws:lambda:${region}::runtime:da57c20c4b965d5b75540f6865a35fc8030358e33ec44ecfed33e90901a27a72`;try {await getLambdaClient(region).send(new PutRuntimeManagementConfigCommand({diff --git a/packages/lambda/src/api/deploy-function.ts b/packages/lambda/src/api/deploy-function.tsindex fbff3b0eac..94bfde0984 100644--- a/packages/lambda/src/api/deploy-function.ts+++ b/packages/lambda/src/api/deploy-function.ts@@ -1,6 +1,5 @@import type {LogLevel} from '@remotion/renderer';import {wrapWithErrorHandling} from '@remotion/renderer/error-handling';-import {NoReactInternals} from 'remotion/no-react';import {VERSION} from 'remotion/version';import {getFunctions} from '../api/get-functions';import type {AwsRegion} from '../regions';@@ -38,7 +37,6 @@ type OptionalParameters = {enableLambdaInsights: boolean;indent: boolean;logLevel: LogLevel;- enableV5Runtime: boolean;vpcSubnetIds: string | undefined;vpcSecurityGroupIds: string | undefined;runtimePreference: RuntimePreference;@@ -99,7 +97,6 @@ export const internalDeployFunction = async (ephemerealStorageInMb: params.diskSizeInMb,customRoleArn: params.customRoleArn as string,enableLambdaInsights: params.enableLambdaInsights ?? false,- enableV5Runtime: params.enableV5Runtime,logLevel: params.logLevel,vpcSubnetIds: params.vpcSubnetIds as string,vpcSecurityGroupIds: params.vpcSecurityGroupIds as string,@@ -137,7 +134,16 @@ export const deployFunction = ({vpcSecurityGroupIds,runtimePreference,diskSizeInMb,-}: DeployFunctionInput) => {+}: DeployFunctionInput & {+ // @deprecated This option is now on by default+ enableV5Runtime?: boolean;+}) => {+ if (enableV5Runtime) {+ console.warn(+ 'The `enableV5Runtime` option is now on by default. No need to specify it anymore.',+ );+ }+return errorHandled({indent: indent ?? false,logLevel: logLevel ?? 'info',@@ -149,8 +155,6 @@ export const deployFunction = ({region,timeoutInSeconds,cloudWatchLogRetentionPeriodInDays,- enableV5Runtime:- enableV5Runtime ?? NoReactInternals.ENABLE_V5_BREAKING_CHANGES,vpcSubnetIds,vpcSecurityGroupIds,runtimePreference: runtimePreference ?? 'default',diff --git a/packages/lambda/src/cli/commands/functions/deploy.ts b/packages/lambda/src/cli/commands/functions/deploy.tsindex 0c11b155b8..6d9396cbaf 100644--- a/packages/lambda/src/cli/commands/functions/deploy.ts+++ b/packages/lambda/src/cli/commands/functions/deploy.ts@@ -16,6 +16,7 @@ import {validateVpcSecurityGroupIds} from '../../../shared/validate-vpc-securityimport {validateVpcSubnetIds} from '../../../shared/validate-vpc-subnet-ids';import {parsedLambdaCli} from '../../args';import {getAwsRegion} from '../../get-aws-region';+import {Log} from '../../log';export const FUNCTIONS_DEPLOY_SUBCOMMAND = 'deploy';@@ -31,6 +32,12 @@ export const functionsDeploySubcommand = async (logLevel: LogLevel) => {const cloudWatchLogRetentionPeriodInDays =parsedLambdaCli['retention-period'] ?? DEFAULT_CLOUDWATCH_RETENTION_PERIOD;const enableV5Runtime = parsedLambdaCli['enable-v5-runtime'] ?? undefined;+ if (enableV5Runtime) {+ Log.warn(+ {logLevel, indent: false},+ `The --enable-v5-runtime flag is now enabled by default and has no function anymore.`,+ );+ }const vpcSubnetIds = parsedLambdaCli['vpc-subnet-ids'] ?? undefined;const vpcSecurityGroupIds =parsedLambdaCli['vpc-security-group-ids'] ?? undefined;@@ -87,7 +94,6 @@ VPC Security Group IDs = ${vpcSecurityGroupIds}diskSizeInMb,customRoleArn,enableLambdaInsights,- enableV5Runtime,indent: false,logLevel,vpcSubnetIds,diff --git a/packages/lambda/src/pricing/price-per-1-s.ts b/packages/lambda/src/pricing/price-per-1-s.tsindex 7effbbe42d..48019ae174 100644--- a/packages/lambda/src/pricing/price-per-1-s.ts+++ b/packages/lambda/src/pricing/price-per-1-s.ts@@ -209,6 +209,74 @@ export const pricing: {price: '0.0000133334',},},+ 'ap-southeast-4': {+ 'Lambda Storage-Duration': {+ rateCode: 'VVJE4FEKRZE6DRJK.JRTCKXETXF.6YS6EN2CT7',+ price: '0.0000000370',+ },+ 'Lambda Requests-ARM': {+ rateCode: 'UH8TQNRPPRZ9TJ4V.JRTCKXETXF.6YS6EN2CT7',+ price: '0.0000002000',+ },+ 'Lambda Provisioned-Concurrency': {+ rateCode: '2EC2UBFH6KGNHV2T.JRTCKXETXF.6YS6EN2CT7',+ price: '0.0000052360',+ },+ 'Lambda Duration-ARM': {+ rateCode: 'QVV5SPACJCKHAF8A.JRTCKXETXF.6NBUNBXSC3',+ price: '0.0000133334',+ },+ 'Lambda Requests': {+ rateCode: 'VXJTSR9CJSBFXG5K.JRTCKXETXF.6YS6EN2CT7',+ price: '0.0000002000',+ },+ 'Lambda Storage-Duration-ARM': {+ rateCode: '29EUHTVHTD7D8THR.JRTCKXETXF.6YS6EN2CT7',+ price: '0.0000000370',+ },+ 'Lambda Duration': {+ rateCode: 'H6FQK2WA7RDQ5V8X.JRTCKXETXF.CUKFZ388N3',+ price: '0.0000166667',+ },+ 'Lambda Duration-Provisioned': {+ rateCode: 'YYP8U36M9AE5T6D2.JRTCKXETXF.6YS6EN2CT7',+ price: '0.0000122173',+ },+ },+ 'ap-southeast-5': {+ 'Lambda Storage-Duration-ARM': {+ rateCode: 'Q54DCNPEP5HDZ72X.JRTCKXETXF.6YS6EN2CT7',+ price: '0.0000000333',+ },+ 'Lambda Storage-Duration': {+ rateCode: 'Q54DCNPEP5HDZ72X.JRTCKXETXF.6YS6EN2CT7',+ price: '0.0000000333',+ },+ 'Lambda Requests-ARM': {+ rateCode: 'F9T53VWVKRT6G32X.JRTCKXETXF.6YS6EN2CT7',+ price: '0.0000001800',+ },+ 'Lambda Provisioned-Concurrency': {+ rateCode: '72ETGRTGNSDZG7ZS.JRTCKXETXF.6YS6EN2CT7',+ price: '0.0000046791',+ },+ 'Lambda Duration-ARM': {+ rateCode: 'JZF5EBXY9YXH6KJZ.JRTCKXETXF.6NBUNBXSC3',+ price: '0.0000120000',+ },+ 'Lambda Requests': {+ rateCode: 'GVB4MJBFXA3BX4M6.JRTCKXETXF.6YS6EN2CT7',+ price: '0.0000001800',+ },+ 'Lambda Duration': {+ rateCode: 'D9T9NECWKTB5WH67.JRTCKXETXF.CUKFZ388N3',+ price: '0.0000150000',+ },+ 'Lambda Duration-Provisioned': {+ rateCode: 'BWUE5MJNG4QYHA76.JRTCKXETXF.6YS6EN2CT7',+ price: '0.0000109181',+ },+ },'ap-southeast-1': {'Lambda Duration-Provisioned': {rateCode: 'Z43QGMUZW4S2XN34.JRTCKXETXF.6YS6EN2CT7',diff --git a/packages/lambda/src/shared/get-layers.ts b/packages/lambda/src/shared/get-layers.tsindex 3de12899e0..5ea2adfb5c 100644--- a/packages/lambda/src/shared/get-layers.ts+++ b/packages/lambda/src/shared/get-layers.ts@@ -1,6 +1,6 @@import type {AwsRegion} from '../regions';import type {AwsLayer} from './hosted-layers';-import {hostedLayers, v5HostedLayers} from './hosted-layers';+import {v5HostedLayers} from './hosted-layers';const runtimePreferenceOptions = ['default', 'apple-emojis', 'cjk'] as const;@@ -23,16 +23,11 @@ export const validateRuntimePreference = (option: unknown) => {export const getLayers = ({option,region,- enableV5Runtime,}: {option: RuntimePreference;region: AwsRegion;- enableV5Runtime: boolean;}): AwsLayer[] => {- const layers = enableV5Runtime- ? v5HostedLayers[region]- : hostedLayers[region];-+ const layers = v5HostedLayers[region];return layers.filter((layer) => {if (layer.layerArn.includes('emoji-apple')) {return option === 'apple-emojis';diff --git a/packages/lambda/src/shared/hosted-layers.ts b/packages/lambda/src/shared/hosted-layers.tsindex 921abfd944..ca7faf0032 100644--- a/packages/lambda/src/shared/hosted-layers.ts+++ b/packages/lambda/src/shared/hosted-layers.ts@@ -10,577 +10,8 @@ export type AwsLayer = {export type HostedLayers = {[region in AwsRegion]: AwsLayer[];};-export const hostedLayers: HostedLayers = {- 'ap-northeast-1': [- {- layerArn:- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 14,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 18,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'ap-south-1': [- {- layerArn:- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 14,- },- {- layerArn:- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 18,- },- {- layerArn:- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'ap-southeast-1': [- {- layerArn:- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 14,- },- {- layerArn:- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 18,- },- {- layerArn:- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'ap-southeast-2': [- {- layerArn:- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-fonts-arm64',- version: 14,- },- {- layerArn:- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-chromium-arm64',- version: 18,- },- {- layerArn:- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'eu-central-1': [- {- layerArn:- 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 38,- },- {- layerArn:- 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 39,- },- {- layerArn:- 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'eu-west-1': [- {- layerArn:- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 15,- },- {- layerArn:- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 18,- },- {- layerArn:- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'eu-west-2': [- {- layerArn:- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-fonts-arm64',- version: 14,- },- {- layerArn:- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-chromium-arm64',- version: 18,- },- {- layerArn:- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'us-east-1': [- {- layerArn:- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 19,- },- {- layerArn:- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 27,- },- {- layerArn:- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'us-east-2': [- {- layerArn:- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-fonts-arm64',- version: 14,- },- {- layerArn:- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-chromium-arm64',- version: 18,- },- {- layerArn:- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'us-west-2': [- {- layerArn:- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-fonts-arm64',- version: 14,- },- {- layerArn:- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-chromium-arm64',- version: 18,- },- {- layerArn:- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'af-south-1': [- {- layerArn:- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'ap-east-1': [- {- layerArn:- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'ap-northeast-2': [- {- layerArn:- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-fonts-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-chromium-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'ap-northeast-3': [- {- layerArn:- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-fonts-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-chromium-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'ca-central-1': [- {- layerArn:- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'eu-north-1': [- {- layerArn:- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'eu-south-1': [- {- layerArn:- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'eu-west-3': [- {- layerArn:- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-fonts-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-chromium-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'me-south-1': [- {- layerArn:- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'sa-east-1': [- {- layerArn:- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],- 'us-west-1': [- {- layerArn:- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 11,- },- {- layerArn:- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-emoji-apple-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-emoji-google-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-cjk-arm64',- version: 2,- },- ],-};-export const v5HostedLayers: HostedLayers = {+export const hostedLayers: HostedLayers = {'ap-northeast-1': [{layerArn:diff --git a/packages/lambda/src/shared/lambda-insights-extensions.ts b/packages/lambda/src/shared/lambda-insights-extensions.tsindex 0d3ec19ac2..5206193096 100644--- a/packages/lambda/src/shared/lambda-insights-extensions.ts+++ b/packages/lambda/src/shared/lambda-insights-extensions.ts@@ -1,46 +1,50 @@import type {AwsRegion} from '../regions';-export const lambdaInsightsExtensions: {[region in AwsRegion]: string} = {- 'us-east-1':- 'arn:aws:lambda:us-east-1:580247275435:layer:LambdaInsightsExtension-Arm64:5',- 'us-east-2':- 'arn:aws:lambda:us-east-2:580247275435:layer:LambdaInsightsExtension-Arm64:7',- 'us-west-1':- 'arn:aws:lambda:us-west-1:580247275435:layer:LambdaInsightsExtension-Arm64:3',- 'us-west-2':- 'arn:aws:lambda:us-west-2:580247275435:layer:LambdaInsightsExtension-Arm64:5',- 'af-south-1':- 'arn:aws:lambda:af-south-1:012438385374:layer:LambdaInsightsExtension-Arm64:2',- 'ap-east-1':- 'arn:aws:lambda:ap-east-1:519774774795:layer:LambdaInsightsExtension-Arm64:2',- 'ap-south-1':- 'arn:aws:lambda:ap-south-1:580247275435:layer:LambdaInsightsExtension-Arm64:7',- 'ap-northeast-3':- 'arn:aws:lambda:ap-northeast-3:194566237122:layer:LambdaInsightsExtension-Arm64:2',- 'ap-northeast-2':- 'arn:aws:lambda:ap-northeast-2:580247275435:layer:LambdaInsightsExtension-Arm64:4',- 'ap-southeast-1':- 'arn:aws:lambda:ap-southeast-1:580247275435:layer:LambdaInsightsExtension-Arm64:5',- 'ap-southeast-2':- 'arn:aws:lambda:ap-southeast-2:580247275435:layer:LambdaInsightsExtension-Arm64:5',- 'ap-northeast-1':- 'arn:aws:lambda:ap-northeast-1:580247275435:layer:LambdaInsightsExtension-Arm64:11',- 'ca-central-1':- 'arn:aws:lambda:ca-central-1:580247275435:layer:LambdaInsightsExtension-Arm64:3',- 'eu-central-1':- 'arn:aws:lambda:eu-central-1:580247275435:layer:LambdaInsightsExtension-Arm64:5',- 'eu-west-1':- 'arn:aws:lambda:eu-west-1:580247275435:layer:LambdaInsightsExtension-Arm64:5',- 'eu-west-2':- 'arn:aws:lambda:eu-west-2:580247275435:layer:LambdaInsightsExtension-Arm64:5',- 'eu-south-1':- 'arn:aws:lambda:eu-south-1:339249233099:layer:LambdaInsightsExtension-Arm64:2',- 'eu-west-3':- 'arn:aws:lambda:eu-west-3:580247275435:layer:LambdaInsightsExtension-Arm64:3',- 'eu-north-1':- 'arn:aws:lambda:eu-north-1:580247275435:layer:LambdaInsightsExtension-Arm64:3',- 'me-south-1':- 'arn:aws:lambda:me-south-1:285320876703:layer:LambdaInsightsExtension-Arm64:2',- 'sa-east-1':- 'arn:aws:lambda:sa-east-1:580247275435:layer:LambdaInsightsExtension-Arm64:3',-};+export const lambdaInsightsExtensions: {[region in AwsRegion]: string | null} =+ {+ 'us-east-1':+ 'arn:aws:lambda:us-east-1:580247275435:layer:LambdaInsightsExtension-Arm64:5',+ 'us-east-2':+ 'arn:aws:lambda:us-east-2:580247275435:layer:LambdaInsightsExtension-Arm64:7',+ 'us-west-1':+ 'arn:aws:lambda:us-west-1:580247275435:layer:LambdaInsightsExtension-Arm64:3',+ 'us-west-2':+ 'arn:aws:lambda:us-west-2:580247275435:layer:LambdaInsightsExtension-Arm64:5',+ 'af-south-1':+ 'arn:aws:lambda:af-south-1:012438385374:layer:LambdaInsightsExtension-Arm64:2',+ 'ap-east-1':+ 'arn:aws:lambda:ap-east-1:519774774795:layer:LambdaInsightsExtension-Arm64:2',+ 'ap-south-1':+ 'arn:aws:lambda:ap-south-1:580247275435:layer:LambdaInsightsExtension-Arm64:7',+ 'ap-northeast-3':+ 'arn:aws:lambda:ap-northeast-3:194566237122:layer:LambdaInsightsExtension-Arm64:2',+ 'ap-northeast-2':+ 'arn:aws:lambda:ap-northeast-2:580247275435:layer:LambdaInsightsExtension-Arm64:4',+ 'ap-southeast-1':+ 'arn:aws:lambda:ap-southeast-1:580247275435:layer:LambdaInsightsExtension-Arm64:5',+ 'ap-southeast-2':+ 'arn:aws:lambda:ap-southeast-2:580247275435:layer:LambdaInsightsExtension-Arm64:5',+ 'ap-northeast-1':+ 'arn:aws:lambda:ap-northeast-1:580247275435:layer:LambdaInsightsExtension-Arm64:11',+ 'ca-central-1':+ 'arn:aws:lambda:ca-central-1:580247275435:layer:LambdaInsightsExtension-Arm64:3',+ 'eu-central-1':+ 'arn:aws:lambda:eu-central-1:580247275435:layer:LambdaInsightsExtension-Arm64:5',+ 'eu-west-1':+ 'arn:aws:lambda:eu-west-1:580247275435:layer:LambdaInsightsExtension-Arm64:5',+ 'eu-west-2':+ 'arn:aws:lambda:eu-west-2:580247275435:layer:LambdaInsightsExtension-Arm64:5',+ 'eu-south-1':+ 'arn:aws:lambda:eu-south-1:339249233099:layer:LambdaInsightsExtension-Arm64:2',+ 'eu-west-3':+ 'arn:aws:lambda:eu-west-3:580247275435:layer:LambdaInsightsExtension-Arm64:3',+ 'eu-north-1':+ 'arn:aws:lambda:eu-north-1:580247275435:layer:LambdaInsightsExtension-Arm64:3',+ 'me-south-1':+ 'arn:aws:lambda:me-south-1:285320876703:layer:LambdaInsightsExtension-Arm64:2',+ 'sa-east-1':+ 'arn:aws:lambda:sa-east-1:580247275435:layer:LambdaInsightsExtension-Arm64:3',+ 'ap-southeast-4': null,+ 'ap-southeast-5': null,+ 'eu-central-2': null,+ };