Skip to content

🎥 Make videos programmatically with React

drop lambda x86 support

Jonny Burgerb12238e4269d
diff --git a/packages/docs/components/lambda/default-architecture.tsx b/packages/docs/components/lambda/default-architecture.tsx
deleted file mode 100644
index dd516081e6..0000000000
--- a/packages/docs/components/lambda/default-architecture.tsx
+++ /dev/null
@@ -1,6 +0,0 @@
-import { DEFAULT_ARCHITECTURE } from "@remotion/lambda/dist/defaults";
-import React from "react";
-
-export const DefaultArchitecture: React.FC = () => {
- return <span>{DEFAULT_ARCHITECTURE}</span>;
-};
diff --git a/packages/docs/docs/4-0-migration.md b/packages/docs/docs/4-0-migration.md
index d4e30b905b..c0a94ce534 100644
--- a/packages/docs/docs/4-0-migration.md
+++ b/packages/docs/docs/4-0-migration.md
@@ -28,3 +28,9 @@ Upgrade `remotion` and all packages starting with `@remotion` to the latest vers
```
Run `npm i `, `yarn` or `pnpm i` respectively afterwards.
+
+## Dropped support for Lambda `architecture`
+
+When deploying a Lambda, you were able to previously choose between `arm64` and `x86_64` architectures. From v4.0 on, only `arm64` is supported. It should be faster, cheaper and not have any different behaviors than `x86_64`.
+
+**How to upgrade**: Remove the `architecture` option from `estimatePrice()`, `deployFunction()` `:
diff --git a/packages/docs/docs/lambda/cli/functions.md b/packages/docs/docs/lambda/cli/functions.md
index 004e824e87..1e7e0529b1 100644
--- a/packages/docs/docs/lambda/cli/functions.md
+++ b/packages/docs/docs/lambda/cli/functions.md
@@ -11,7 +11,6 @@ import {DefaultMemorySize} from '../../../components/lambda/default-memory-size'
import {DefaultEphemerealStorageInMb} from '../../../components/lambda/default-disk-size';
import {DefaultTimeout} from '../../../components/lambda/default-timeout';
import {DefaultLogRetention} from '../../../components/lambda/default-log-retention';
-import {DefaultArchitecture} from '../../../components/lambda/default-architecture';
The `npx remotion lambda functions` command allows you to deploy, view and delete AWS lambda functions that can render videos.
@@ -71,10 +70,6 @@ Timeout of the Lambda function. Default: <DefaultTimeout /> seconds.
Not to be confused with the [`--timeout` flag when rendering which defines the timeout for `delayRender()`](/docs/cli/render#--timeout).
:::
-### `--architecture`
-
-Architecture to be used for the Lambda. One of `arm64` and `x86_64`. Default: <DefaultArchitecture />.
-
### `--disable-cloudwatch`
Does not create a CloudWatch log group.
diff --git a/packages/docs/docs/lambda/deployfunction.md b/packages/docs/docs/lambda/deployfunction.md
index 9964f195a2..35ac2e7885 100644
--- a/packages/docs/docs/lambda/deployfunction.md
+++ b/packages/docs/docs/lambda/deployfunction.md
@@ -23,7 +23,6 @@ const { functionName } = await deployFunction({
timeoutInSeconds: 120,
memorySizeInMb: 2048,
createCloudWatchLogGroup: true,
- architecture: "arm64",
diskSizeInMb: 2048,
});
console.log(functionName);
@@ -46,12 +45,6 @@ We recommend a timeout of 120 seconds or lower - remember, Remotion Lambda is th
How many megabytes of RAM the Lambda function should have. By default we recommend a value of 2048MB. You may increase or decrease it depending on how memory-consuming your video is. The minimum allowed number is `512`, the maximum allowed number is `10240`. Since the costs of Remotion Lambda is directly proportional to the amount of RAM, we recommend to keep this amount as low as possible.
-### `architecture`
-
-_string_
-
-Either `x86_64` or `arm64`. Default: `arm64`
-
### `createCloudWatchLogGroup`
_boolean_
diff --git a/packages/docs/docs/lambda/estimateprice.md b/packages/docs/docs/lambda/estimateprice.md
index 9f58d8ecd7..b36aa6c561 100644
--- a/packages/docs/docs/lambda/estimateprice.md
+++ b/packages/docs/docs/lambda/estimateprice.md
@@ -30,7 +30,6 @@ console.log(
durationInMiliseconds: 20000,
memorySizeInMb: 2048,
diskSizeInMb: 2048,
- architecture: "arm64",
lambdasInvoked: 1,
})
); // 0.00067
@@ -52,10 +51,6 @@ The amount of memory that has been given to the Lambda function. May be received
The estimated total execution duration in miliseconds of all Lambdas combined. See the top of this page for a guide on how to approximate the duration.
-### `architecture`
-
-The architecture of the deployed Lambda (either `arm64` or `x86_64`).
-
### `lambdasInvoked`
The number of lambdas that were invoked in the rendering process.
diff --git a/packages/docs/docs/lambda/setup.md b/packages/docs/docs/lambda/setup.md
index 69f5ab3a5d..866895940d 100644
--- a/packages/docs/docs/lambda/setup.md
+++ b/packages/docs/docs/lambda/setup.md
@@ -156,7 +156,6 @@ const { functionName } = await deployFunction({
timeoutInSeconds: 120,
memorySizeInMb: 2048,
createCloudWatchLogGroup: true,
- architecture: "arm64",
});
```
diff --git a/packages/lambda/package.json b/packages/lambda/package.json
index f491f285a9..7b669710cd 100644
--- a/packages/lambda/package.json
+++ b/packages/lambda/package.json
@@ -43,7 +43,6 @@
"devDependencies": {
"@jonny/eslint-config": "3.0.266",
"@remotion/compositor-linux-arm64-musl": "3.3.44",
- "@remotion/compositor-linux-x64-musl": "3.3.44",
"@remotion/bundler": "3.3.44",
"@types/mime-types": "2.1.1",
"@types/minimist": "1.2.2",
diff --git a/packages/lambda/src/admin/bundle-lambda.ts b/packages/lambda/src/admin/bundle-lambda.ts
index 96df5da570..2f65f7bd22 100644
--- a/packages/lambda/src/admin/bundle-lambda.ts
+++ b/packages/lambda/src/admin/bundle-lambda.ts
@@ -1,17 +1,12 @@
import {BundlerInternals} from '@remotion/bundler';
import {binaryPath as armBinaryPath} from '@remotion/compositor-linux-arm64-musl';
-import {binaryPath as x64BinaryPath} from '@remotion/compositor-linux-x64-musl';
import fs from 'fs';
import path from 'path';
import {quit} from '../cli/helpers/quit';
-import {
- FUNCTION_ZIP_ARM64,
- FUNCTION_ZIP_X86_64,
-} from '../shared/function-zip-path';
-import type {LambdaArchitecture} from '../shared/validate-architecture';
+import {FUNCTION_ZIP_ARM64} from '../shared/function-zip-path';
import zl = require('zip-lib');
-const bundleLambda = async (arch: LambdaArchitecture) => {
+const bundleLambda = async () => {
const outdir = path.join(__dirname, '..', `build-render`);
fs.mkdirSync(outdir, {
recursive: true,
@@ -35,25 +30,16 @@ const bundleLambda = async (arch: LambdaArchitecture) => {
});
const compositorFile = `${outdir}/compositor`;
- if (arch === 'arm64') {
- fs.copyFileSync(armBinaryPath, compositorFile);
- await zl.archiveFolder(outdir, FUNCTION_ZIP_ARM64);
- } else {
- fs.copyFileSync(x64BinaryPath, compositorFile);
- await zl.archiveFolder(outdir, FUNCTION_ZIP_X86_64);
- }
+ fs.copyFileSync(armBinaryPath, compositorFile);
+ await zl.archiveFolder(outdir, FUNCTION_ZIP_ARM64);
fs.unlinkSync(compositorFile);
fs.unlinkSync(outfile);
};
-bundleLambda('arm64')
+bundleLambda()
.then(() => {
- console.log('Lambda bundled for arm64');
- return bundleLambda('x86_64');
- })
- .then(() => {
- console.log('Lambda bundled for x86_64');
+ console.log('Bundled Lambda');
})
.catch((err) => {
console.log(err);
diff --git a/packages/lambda/src/admin/make-layer-public.ts b/packages/lambda/src/admin/make-layer-public.ts
index d3d3e69cf3..0c153f2b22 100644
--- a/packages/lambda/src/admin/make-layer-public.ts
+++ b/packages/lambda/src/admin/make-layer-public.ts
@@ -8,111 +8,82 @@ import {getRegions} from '../api/get-regions';
import {quit} from '../cli/helpers/quit';
import {getLambdaClient} from '../shared/aws-clients';
import type {HostedLayers} from '../shared/hosted-layers';
-import type {LambdaArchitecture} from '../shared/validate-architecture';
const runtimes: string[] = ['nodejs14.x'];
-const archictures: LambdaArchitecture[] = ['arm64', 'x86_64'];
-
const layerInfo: HostedLayers = {
- arm64: {
- 'ap-northeast-1': [],
- 'ap-south-1': [],
- 'ap-southeast-1': [],
- 'ap-southeast-2': [],
- 'eu-central-1': [],
- 'eu-west-1': [],
- 'eu-west-2': [],
- 'us-east-1': [],
- 'us-east-2': [],
- 'us-west-2': [],
- 'af-south-1': [],
- 'ap-east-1': [],
- 'ap-northeast-2': [],
- 'ap-northeast-3': [],
- 'ca-central-1': [],
- 'eu-north-1': [],
- 'eu-south-1': [],
- 'eu-west-3': [],
- 'me-south-1': [],
- 'sa-east-1': [],
- 'us-west-1': [],
- },
- x86_64: {
- 'ap-northeast-1': [],
- 'ap-south-1': [],
- 'ap-southeast-1': [],
- 'ap-southeast-2': [],
- 'eu-central-1': [],
- 'eu-west-1': [],
- 'eu-west-2': [],
- 'us-east-1': [],
- 'us-east-2': [],
- 'us-west-2': [],
- 'af-south-1': [],
- 'ap-east-1': [],
- 'ap-northeast-2': [],
- 'ap-northeast-3': [],
- 'ca-central-1': [],
- 'eu-north-1': [],
- 'eu-south-1': [],
- 'eu-west-3': [],
- 'me-south-1': [],
- 'sa-east-1': [],
- 'us-west-1': [],
- },
+ 'ap-northeast-1': [],
+ 'ap-south-1': [],
+ 'ap-southeast-1': [],
+ 'ap-southeast-2': [],
+ 'eu-central-1': [],
+ 'eu-west-1': [],
+ 'eu-west-2': [],
+ 'us-east-1': [],
+ 'us-east-2': [],
+ 'us-west-2': [],
+ 'af-south-1': [],
+ 'ap-east-1': [],
+ 'ap-northeast-2': [],
+ 'ap-northeast-3': [],
+ 'ca-central-1': [],
+ 'eu-north-1': [],
+ 'eu-south-1': [],
+ 'eu-west-3': [],
+ 'me-south-1': [],
+ 'sa-east-1': [],
+ 'us-west-1': [],
};
+const architecture = 'arm64';
const makeLayerPublic = async () => {
const layers = ['fonts', 'ffmpeg', 'chromium'] as const;
- for (const architecture of archictures) {
- for (const region of getRegions()) {
- for (const layer of layers) {
- const layerName = `remotion-binaries-${layer}-${architecture}`;
- const {Version, LayerArn} = await getLambdaClient(region).send(
- new PublishLayerVersionCommand({
- Content: {
- S3Bucket: 'remotionlambda-binaries-' + region,
- S3Key: `remotion-layer-${layer}-v9-${architecture}.zip`,
- },
- LayerName: layerName,
- LicenseInfo:
- layer === 'chromium'
- ? 'Chromium 104, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'
- : layer === 'ffmpeg'
- ? 'Compiled from FFMPEG source. Read FFMPEG license: https://ffmpeg.org/legal.html'
- : 'Contains Noto Sans font. Read Noto Sans License: https://fonts.google.com/noto/specimen/Noto+Sans/about',
- CompatibleRuntimes: runtimes,
- Description: VERSION,
- })
- );
- await getLambdaClient(region).send(
- new AddLayerVersionPermissionCommand({
- Action: lambda.GetLayerVersion,
- LayerName: layerName,
- Principal: '*',
- VersionNumber: Version,
- StatementId: 'public-layer',
- })
- );
- if (!layerInfo[architecture][region]) {
- layerInfo[architecture][region] = [];
- }
-
- if (!LayerArn) {
- throw new Error('layerArn is null');
- }
+ for (const region of getRegions()) {
+ for (const layer of layers) {
+ const layerName = `remotion-binaries-${layer}-${architecture}`;
+ const {Version, LayerArn} = await getLambdaClient(region).send(
+ new PublishLayerVersionCommand({
+ Content: {
+ S3Bucket: 'remotionlambda-binaries-' + region,
+ S3Key: `remotion-layer-${layer}-v9-${architecture}.zip`,
+ },
+ LayerName: layerName,
+ LicenseInfo:
+ layer === 'chromium'
+ ? 'Chromium 104, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'
+ : layer === 'ffmpeg'
+ ? 'Compiled from FFMPEG source. Read FFMPEG license: https://ffmpeg.org/legal.html'
+ : 'Contains Noto Sans font. Read Noto Sans License: https://fonts.google.com/noto/specimen/Noto+Sans/about',
+ CompatibleRuntimes: runtimes,
+ Description: VERSION,
+ })
+ );
+ await getLambdaClient(region).send(
+ new AddLayerVersionPermissionCommand({
+ Action: lambda.GetLayerVersion,
+ LayerName: layerName,
+ Principal: '*',
+ VersionNumber: Version,
+ StatementId: 'public-layer',
+ })
+ );
+ if (!layerInfo[region]) {
+ layerInfo[region] = [];
+ }
- if (!Version) {
- throw new Error('Version is null');
- }
+ if (!LayerArn) {
+ throw new Error('layerArn is null');
+ }
- layerInfo[architecture][region].push({
- layerArn: LayerArn,
- version: Version,
- });
- console.log({LayerArn, Version});
+ if (!Version) {
+ throw new Error('Version is null');
}
+
+ layerInfo[region].push({
+ layerArn: LayerArn,
+ version: Version,
+ });
+ console.log({LayerArn, Version});
}
}
};
diff --git a/packages/lambda/src/api/create-function.ts b/packages/lambda/src/api/create-function.ts
index c40b12e20c..0b1d9fd789 100644
--- a/packages/lambda/src/api/create-function.ts
+++ b/packages/lambda/src/api/create-function.ts
@@ -11,7 +11,6 @@ import {LOG_GROUP_PREFIX} from '../defaults';
import type {AwsRegion} from '../pricing/aws-regions';
import {getCloudWatchLogsClient, getLambdaClient} from '../shared/aws-clients';
import {hostedLayers} from '../shared/hosted-layers';
-import type {LambdaArchitecture} from '../shared/validate-architecture';
import {ROLE_NAME} from './iam-validation/suggested-policy';
export const createFunction = async ({
@@ -24,7 +23,6 @@ export const createFunction = async ({
timeoutInSeconds,
alreadyCreated,
retentionInDays,
- architecture,
ephemerealStorageInMb,
customRoleArn,
}: {
@@ -38,7 +36,6 @@ export const createFunction = async ({
alreadyCreated: boolean;
retentionInDays: number;
ephemerealStorageInMb: number;
- architecture: LambdaArchitecture;
customRoleArn: string;
}): Promise<{FunctionName: string}> => {
if (createCloudWatchLogGroup) {
@@ -81,10 +78,10 @@ export const createFunction = async ({
Description: 'Renders a Remotion video.',
MemorySize: memorySizeInMb,
Timeout: timeoutInSeconds,
- Layers: hostedLayers[architecture][region].map(
+ Layers: hostedLayers[region].map(
({layerArn, version}) => `${layerArn}:${version}`
),
- Architectures: [architecture],
+ Architectures: ['arm64'],
EphemeralStorage: {
Size: ephemerealStorageInMb,
},
diff --git a/packages/lambda/src/api/deploy-function.ts b/packages/lambda/src/api/deploy-function.ts
index 7b11baca9c..843ca0367b 100644
--- a/packages/lambda/src/api/deploy-function.ts
+++ b/packages/lambda/src/api/deploy-function.ts
@@ -6,14 +6,9 @@ import {
DEFAULT_EPHEMERAL_STORAGE_IN_MB,
RENDER_FN_PREFIX,
} from '../shared/constants';
-import {
- FUNCTION_ZIP_ARM64,
- FUNCTION_ZIP_X86_64,
-} from '../shared/function-zip-path';
+import {FUNCTION_ZIP_ARM64} from '../shared/function-zip-path';
import {getAccountId} from '../shared/get-account-id';
import {LAMBDA_VERSION_STRING} from '../shared/lambda-version-string';
-import type {LambdaArchitecture} from '../shared/validate-architecture';
-import {validateArchitecture} from '../shared/validate-architecture';
import {validateAwsRegion} from '../shared/validate-aws-region';
import {validateCustomRoleArn} from '../shared/validate-custom-role-arn';
import {validateDiskSizeInMb} from '../shared/validate-disk-size-in-mb';
@@ -28,7 +23,6 @@ export type DeployFunctionInput = {
region: AwsRegion;
timeoutInSeconds: number;
memorySizeInMb: number;
- architecture: LambdaArchitecture;
diskSizeInMb?: number;
customRoleArn?: string;
};
@@ -46,7 +40,6 @@ export type DeployFunctionOutput = {
* @param options.region The region you want to deploy your function to.
* @param options.timeoutInSeconds After how many seconds the lambda function should be killed if it does not end itself.
* @param options.memorySizeInMb How much memory should be allocated to the Lambda function.
- * @param options.architecture The architecture Lambda should run on. One of x86_64 and x64
* @param options.diskSizeInMb The amount of storage the function should be allocated. The higher, the longer videos you can render. Default 512.
* @returns {Promise<DeployFunctionOutput>} An object that contains the `functionName` property
*/
@@ -59,7 +52,6 @@ export const deployFunction = async (
validateTimeout(options.timeoutInSeconds);
validateAwsRegion(options.region);
validateCloudWatchRetentionPeriod(options.cloudWatchLogRetentionPeriodInDays);
- validateArchitecture(options.architecture);
validateDiskSizeInMb(diskSizeInMb);
validateCustomRoleArn(options.customRoleArn);
@@ -87,10 +79,7 @@ export const deployFunction = async (
const created = await createFunction({
createCloudWatchLogGroup: options.createCloudWatchLogGroup,
region: options.region,
- zipFile:
- options.architecture === 'arm64'
- ? FUNCTION_ZIP_ARM64
- : FUNCTION_ZIP_X86_64,
+ zipFile: FUNCTION_ZIP_ARM64,
functionName: fnNameRender,
accountId,
memorySizeInMb: options.memorySizeInMb,
@@ -99,7 +88,6 @@ export const deployFunction = async (
options.cloudWatchLogRetentionPeriodInDays ??
DEFAULT_CLOUDWATCH_RETENTION_PERIOD,
alreadyCreated: Boolean(alreadyDeployed),
- architecture: options.architecture,
ephemerealStorageInMb: diskSizeInMb,
customRoleArn: options.customRoleArn as string,
});
diff --git a/packages/lambda/src/api/estimate-price.ts b/packages/lambda/src/api/estimate-price.ts
index 64b98172a1..3ea49abdb4 100644
--- a/packages/lambda/src/api/estimate-price.ts
+++ b/packages/lambda/src/api/estimate-price.ts
@@ -1,8 +1,6 @@
import {MIN_EPHEMERAL_STORAGE_IN_MB} from '../defaults';
import type {AwsRegion} from '../pricing/aws-regions';
import {pricing} from '../pricing/price-per-1-s';
-import type {LambdaArchitecture} from '../shared/validate-architecture';
-import {validateArchitecture} from '../shared/validate-architecture';
import {validateAwsRegion} from '../shared/validate-aws-region';
import {validateDiskSizeInMb} from '../shared/validate-disk-size-in-mb';
import {validateMemorySize} from '../shared/validate-memory-size';
@@ -12,7 +10,6 @@ export type EstimatePriceInput = {
durationInMiliseconds: number;
memorySizeInMb: number;
diskSizeInMb: number;
- architecture: LambdaArchitecture;
lambdasInvoked: number;
};
/**
@@ -26,12 +23,10 @@ export const estimatePrice = ({
durationInMiliseconds,
memorySizeInMb,
diskSizeInMb,
- architecture,
lambdasInvoked,
}: EstimatePriceInput): number => {
validateMemorySize(memorySizeInMb);
validateAwsRegion(region);
- validateArchitecture(architecture);
validateDiskSizeInMb(diskSizeInMb);
if (typeof durationInMiliseconds !== 'number') {
throw new TypeError(
@@ -57,20 +52,14 @@ export const estimatePrice = ({
);
}
- const durationPrice =
- architecture === 'x86_64'
- ? pricing[region]['Lambda Duration'].price
- : pricing[region]['Lambda Duration-ARM'].price;
+ const durationPrice = pricing[region]['Lambda Duration-ARM'].price;
// In GB-second
const timeCostDollars =
Number(durationPrice) *
((memorySizeInMb * durationInMiliseconds) / 1000 / 1024);
- const diskSizePrice =
- architecture === 'x86_64'
- ? pricing[region]['Lambda Storage-Duration'].price
- : pricing[region]['Lambda Storage-Duration-ARM'].price;
+ const diskSizePrice = pricing[region]['Lambda Storage-Duration-ARM'].price;
const chargedDiskSize = Math.max(
0,
diff --git a/packages/lambda/src/cli/args.ts b/packages/lambda/src/cli/args.ts
index 1558f65789..5823f9b9fc 100644
--- a/packages/lambda/src/cli/args.ts
+++ b/packages/lambda/src/cli/args.ts
@@ -2,7 +2,6 @@ import {CliInternals} from '@remotion/cli';
import type {AwsRegion} from '../pricing/aws-regions';
import type {Privacy} from '../shared/constants';
-import type {LambdaArchitecture} from '../shared/validate-architecture';
type LambdaCommandLineOptions = {
help: boolean;
@@ -25,7 +24,6 @@ type LambdaCommandLineOptions = {
['frames-per-lambda']: number;
['concurrency-per-lambda']: number;
['out-name']: string | undefined;
- ['architecture']: LambdaArchitecture;
['custom-role-arn']: string | undefined;
privacy: Privacy;
webhook: string | undefined;
diff --git a/packages/lambda/src/cli/commands/functions/deploy.ts b/packages/lambda/src/cli/commands/functions/deploy.ts
index 90b2922ed0..d80f56ffcc 100644
--- a/packages/lambda/src/cli/commands/functions/deploy.ts
+++ b/packages/lambda/src/cli/commands/functions/deploy.ts
@@ -3,13 +3,11 @@ import {Log} from '@remotion/cli/dist/log';
import {VERSION} from 'remotion/version';
import {deployFunction} from '../../../api/deploy-function';
import {
- DEFAULT_ARCHITECTURE,
DEFAULT_CLOUDWATCH_RETENTION_PERIOD,
DEFAULT_EPHEMERAL_STORAGE_IN_MB,
DEFAULT_MEMORY_SIZE,
DEFAULT_TIMEOUT,
} from '../../../shared/constants';
-import {validateArchitecture} from '../../../shared/validate-architecture';
import {validateCustomRoleArn} from '../../../shared/validate-custom-role-arn';
import {validateDiskSizeInMb} from '../../../shared/validate-disk-size-in-mb';
import {validateMemorySize} from '../../../shared/validate-memory-size';
@@ -24,7 +22,6 @@ export const functionsDeploySubcommand = async () => {
const timeoutInSeconds = parsedLambdaCli.timeout ?? DEFAULT_TIMEOUT;
const memorySizeInMb = parsedLambdaCli.memory ?? DEFAULT_MEMORY_SIZE;
const diskSizeInMb = parsedLambdaCli.disk ?? DEFAULT_EPHEMERAL_STORAGE_IN_MB;
- const architecture = parsedLambdaCli.architecture ?? DEFAULT_ARCHITECTURE;
const customRoleArn = parsedLambdaCli['custom-role-arn'] ?? undefined;
const createCloudWatchLogGroup = !parsedLambdaCli['disable-cloudwatch'];
const cloudWatchLogRetentionPeriodInDays =
@@ -32,7 +29,6 @@ export const functionsDeploySubcommand = async () => {
validateMemorySize(memorySizeInMb);
validateTimeout(timeoutInSeconds);
- validateArchitecture(architecture);
validateDiskSizeInMb(diskSizeInMb);
validateCustomRoleArn(customRoleArn);
if (!CliInternals.quietFlagProvided()) {
@@ -44,7 +40,6 @@ Memory = ${memorySizeInMb}MB
Disk size = ${diskSizeInMb}MB
Timeout = ${timeoutInSeconds}sec
Version = ${VERSION}
-Architecture = ${architecture}
CloudWatch Logging Enabled = ${createCloudWatchLogGroup}
CloudWatch Retention Period = ${cloudWatchLogRetentionPeriodInDays} days
`.trim()
@@ -62,7 +57,6 @@ CloudWatch Retention Period = ${cloudWatchLogRetentionPeriodInDays} days
timeoutInSeconds,
memorySizeInMb,
cloudWatchLogRetentionPeriodInDays,
- architecture,
diskSizeInMb,
customRoleArn,
});
diff --git a/packages/lambda/src/functions/helpers/__mocks__/get-current-architecture.ts b/packages/lambda/src/functions/helpers/__mocks__/get-current-architecture.ts
deleted file mode 100644
index e99906f2e9..0000000000
--- a/packages/lambda/src/functions/helpers/__mocks__/get-current-architecture.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import type {getCurrentArchitecture as original} from '../get-current-architecture';
-
-export const getCurrentArchitecture: typeof original = () => {
- return 'arm64';
-};
diff --git a/packages/lambda/src/functions/helpers/calculate-price-from-bucket.ts b/packages/lambda/src/functions/helpers/calculate-price-from-bucket.ts
index 2f1d573ba4..703d9cad74 100644
--- a/packages/lambda/src/functions/helpers/calculate-price-from-bucket.ts
+++ b/packages/lambda/src/functions/helpers/calculate-price-from-bucket.ts
@@ -3,7 +3,6 @@ import {estimatePrice} from '../../api/estimate-price';
import type {RenderMetadata} from '../../shared/constants';
import {lambdaTimingsPrefix} from '../../shared/constants';
import {parseLambdaTimingsKey} from '../../shared/parse-lambda-timings-key';
-import type {LambdaArchitecture} from '../../shared/validate-architecture';
import {calculateChunkTimes} from './calculate-chunk-times';
import type {OutputFileMetadata} from './find-output-file-in-bucket';
import {getCurrentRegionInFunction} from './get-current-region';
@@ -14,7 +13,6 @@ export const estimatePriceFromBucket = ({
renderMetadata,
memorySizeInMb,
outputFileMetadata,
- architecture,
diskSizeInMb,
lambdasInvoked,
}: {
@@ -22,7 +20,6 @@ export const estimatePriceFromBucket = ({
renderMetadata: RenderMetadata | null;
memorySizeInMb: number;
outputFileMetadata: OutputFileMetadata | null;
- architecture: LambdaArchitecture;
diskSizeInMb: number;
lambdasInvoked: number;
}) => {
@@ -65,7 +62,6 @@ export const estimatePriceFromBucket = ({
type: 'combined-time-for-cost-calculation',
}) + timeElapsedOfUnfinished,
memorySizeInMb,
- architecture,
diskSizeInMb,
lambdasInvoked,
}).toPrecision(5)
diff --git a/packages/lambda/src/functions/helpers/create-post-render-data.ts b/packages/lambda/src/functions/helpers/create-post-render-data.ts
index 754ef83946..f8c211d328 100644
--- a/packages/lambda/src/functions/helpers/create-post-render-data.ts
+++ b/packages/lambda/src/functions/helpers/create-post-render-data.ts
@@ -13,7 +13,6 @@ import {
import {parseLambdaTimingsKey} from '../../shared/parse-lambda-timings-key';
import {calculateChunkTimes} from './calculate-chunk-times';
import type {OutputFileMetadata} from './find-output-file-in-bucket';
-import {getCurrentArchitecture} from './get-current-architecture';
import {getFilesToDelete} from './get-files-to-delete';
import {getRetryStats} from './get-retry-stats';
import {getTimeToFinish} from './get-time-to-finish';
@@ -57,7 +56,6 @@ export const createPostRenderData = ({
durationInMiliseconds: times,
memorySizeInMb,
region,
- architecture: getCurrentArchitecture(),
lambdasInvoked: renderMetadata.estimatedTotalLambdaInvokations,
// We cannot determine the ephemeral storage size, so we
// overestimate the price, but will only have a miniscule effect (~0.2%)
diff --git a/packages/lambda/src/functions/helpers/get-current-architecture.ts b/packages/lambda/src/functions/helpers/get-current-architecture.ts
deleted file mode 100644
index bd1e5f3a73..0000000000
--- a/packages/lambda/src/functions/helpers/get-current-architecture.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import {isInsideLambda} from '../../shared/is-in-lambda';
-import type {LambdaArchitecture} from '../../shared/validate-architecture';
-
-export const getCurrentArchitecture = (): LambdaArchitecture => {
- if (!isInsideLambda()) {
- throw new Error(
- 'Should not call getCurrentArchitecture() if not inside a lambda function'
- );
- }
-
- return process.arch.includes('arm') ? 'arm64' : 'x86_64';
-};
diff --git a/packages/lambda/src/functions/helpers/get-progress.ts b/packages/lambda/src/functions/helpers/get-progress.ts
index 1581543bdf..3da3337af4 100644
--- a/packages/lambda/src/functions/helpers/get-progress.ts
+++ b/packages/lambda/src/functions/helpers/get-progress.ts
@@ -20,7 +20,6 @@ import {getExpectedOutName} from './expected-out-name';
import {findOutputFileInBucket} from './find-output-file-in-bucket';
import {formatCostsInfo} from './format-costs-info';
import {getCleanupProgress} from './get-cleanup-progress';
-import {getCurrentArchitecture} from './get-current-architecture';
import {getCurrentRegionInFunction} from './get-current-region';
import {getEncodingMetadata} from './get-encoding-metadata';
import {getFinalEncodingStatus} from './get-final-encoding-status';
@@ -170,7 +169,6 @@ export const getProgress = async ({
renderMetadata,
memorySizeInMb,
outputFileMetadata: outputFile,
- architecture: getCurrentArchitecture(),
lambdasInvoked: renderMetadata?.estimatedRenderLambdaInvokations ?? 0,
// We cannot determine the ephemeral storage size, so we
// overestimate the price, but will only have a miniscule effect (~0.2%)
diff --git a/packages/lambda/src/functions/still.ts b/packages/lambda/src/functions/still.ts
index fc6db7bf61..edd35e25bf 100644
--- a/packages/lambda/src/functions/still.ts
+++ b/packages/lambda/src/functions/still.ts
@@ -32,7 +32,6 @@ import {
import {formatCostsInfo} from './helpers/format-costs-info';
import {getBrowserInstance} from './helpers/get-browser-instance';
import {executablePath} from './helpers/get-chromium-executable-path';
-import {getCurrentArchitecture} from './helpers/get-current-architecture';
import {getCurrentRegionInFunction} from './helpers/get-current-region';
import {getOutputUrlFromMetadata} from './helpers/get-output-url-from-metadata';
import {lambdaWriteFile} from './helpers/io';
@@ -210,7 +209,6 @@ const innerStillHandler = async (
memorySizeInMb: Number(process.env.AWS_LAMBDA_FUNCTION_MEMORY_SIZE),
region: getCurrentRegionInFunction(),
lambdasInvoked: 1,
- architecture: getCurrentArchitecture(),
// We cannot determine the ephemeral storage size, so we
// overestimate the price, but will only have a miniscule effect (~0.2%)
diskSizeInMb: MAX_EPHEMERAL_STORAGE_IN_MB,
diff --git a/packages/lambda/src/index.ts b/packages/lambda/src/index.ts
index 846a0da9f2..4651d933ff 100644
--- a/packages/lambda/src/index.ts
+++ b/packages/lambda/src/index.ts
@@ -73,7 +73,6 @@ import type {AwsRegion} from './pricing/aws-regions';
import type {CustomCredentials} from './shared/aws-clients';
import type {RenderProgress} from './shared/constants';
import type {WebhookPayload} from './shared/invoke-webhook';
-import type {LambdaArchitecture} from './shared/validate-architecture';
/**
* @deprecated Import this from `@remotion/lambda/client` instead
@@ -153,7 +152,6 @@ export type {
SimulatePermissionsOutput,
GetAwsClientInput,
GetAwsClientOutput,
- LambdaArchitecture,
CustomCredentials,
WebhookPayload,
LambdaErrorInfo,
diff --git a/packages/lambda/src/shared/constants.ts b/packages/lambda/src/shared/constants.ts
index ceda0bd7e7..aa48732f59 100644
--- a/packages/lambda/src/shared/constants.ts
+++ b/packages/lambda/src/shared/constants.ts
@@ -18,15 +18,12 @@ import type {
} from './aws-clients';
import type {DownloadBehavior} from './content-disposition-header';
import type {ExpensiveChunk} from './get-most-expensive-chunks';
-import type {LambdaArchitecture} from './validate-architecture';
import type {LambdaCodec} from './validate-lambda-codec';
export const MIN_MEMORY = 512;
export const MAX_MEMORY = 10240;
export const DEFAULT_MEMORY_SIZE = 2048;
-export const DEFAULT_ARCHITECTURE: LambdaArchitecture = 'arm64';
-
export const DEFAULT_TIMEOUT = 120;
export const MIN_TIMEOUT = 15;
export const MAX_TIMEOUT = 900;
diff --git a/packages/lambda/src/shared/function-zip-path.ts b/packages/lambda/src/shared/function-zip-path.ts
index 32520d7110..b52cee99fb 100644
--- a/packages/lambda/src/shared/function-zip-path.ts
+++ b/packages/lambda/src/shared/function-zip-path.ts
@@ -4,8 +4,3 @@ export const FUNCTION_ZIP_ARM64 = path.join(
path.resolve(__dirname, '..', '..'),
`remotionlambda-arm64.zip`
);
-
-export const FUNCTION_ZIP_X86_64 = path.join(
- path.resolve(__dirname, '..', '..'),
- `remotionlambda-x64.zip`
-);
diff --git a/packages/lambda/src/shared/hosted-layers.ts b/packages/lambda/src/shared/hosted-layers.ts
index c1e19b48d8..54a4f52358 100644
--- a/packages/lambda/src/shared/hosted-layers.ts
+++ b/packages/lambda/src/shared/hosted-layers.ts
@@ -1,731 +1,367 @@
import type {AwsRegion} from '../pricing/aws-regions';
-import type {LambdaArchitecture} from './validate-architecture';
export const REMOTION_HOSTED_LAYER_ARN = `arn:aws:lambda:*:678892195805:layer:remotion-binaries-*`;
export type HostedLayers = {
- [architecture in LambdaArchitecture]: {
- [region in AwsRegion]: {layerArn: string; version: number}[];
- };
+ [region in AwsRegion]: {layerArn: string; version: number}[];
};
export const hostedLayers: HostedLayers = {
- arm64: {
- 'ap-northeast-1': [
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 8,
- },
- ],
- 'ap-south-1': [
- {
- layerArn:
- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 8,
- },
- ],
- 'ap-southeast-1': [
- {
- layerArn:
- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 8,
- },
- ],
- 'ap-southeast-2': [
- {
- layerArn:
- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 8,
- },
- ],
- 'eu-central-1': [
- {
- layerArn:
- 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 8,
- },
- ],
- 'eu-west-1': [
- {
- layerArn:
- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 8,
- },
- ],
- 'eu-west-2': [
- {
- layerArn:
- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 8,
- },
- ],
- 'us-east-1': [
- {
- layerArn:
- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 9,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 17,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 17,
- },
- ],
- 'us-east-2': [
- {
- layerArn:
- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 8,
- },
- ],
- 'us-west-2': [
- {
- layerArn:
- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 8,
- },
- ],
- 'af-south-1': [
- {
- layerArn:
- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 1,
- },
- ],
- 'ap-east-1': [
- {
- layerArn:
- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 1,
- },
- ],
- 'ap-northeast-2': [
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 1,
- },
- ],
- 'ap-northeast-3': [
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 1,
- },
- ],
- 'ca-central-1': [
- {
- layerArn:
- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 1,
- },
- ],
- 'eu-north-1': [
- {
- layerArn:
- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 1,
- },
- ],
- 'eu-south-1': [
- {
- layerArn:
- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 1,
- },
- ],
- 'eu-west-3': [
- {
- layerArn:
- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 1,
- },
- ],
- 'me-south-1': [
- {
- layerArn:
- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 1,
- },
- ],
- 'sa-east-1': [
- {
- layerArn:
- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 1,
- },
- ],
- 'us-west-1': [
- {
- layerArn:
- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-fonts-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-chromium-arm64',
- version: 1,
- },
- ],
- },
- x86_64: {
- 'ap-northeast-1': [
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 8,
- },
- ],
- 'ap-south-1': [
- {
- layerArn:
- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 8,
- },
- ],
- 'ap-southeast-1': [
- {
- layerArn:
- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 8,
- },
- ],
- 'ap-southeast-2': [
- {
- layerArn:
- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 8,
- },
- ],
- 'eu-central-1': [
- {
- layerArn:
- 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 8,
- },
- ],
- 'eu-west-1': [
- {
- layerArn:
- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 8,
- },
- ],
- 'eu-west-2': [
- {
- layerArn:
- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 8,
- },
- ],
- 'us-east-1': [
- {
- layerArn:
- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 9,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 17,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 17,
- },
- ],
- 'us-east-2': [
- {
- layerArn:
- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 8,
- },
- ],
- 'us-west-2': [
- {
- layerArn:
- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 4,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 8,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 8,
- },
- ],
- 'af-south-1': [
- {
- layerArn:
- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 1,
- },
- ],
- 'ap-east-1': [
- {
- layerArn:
- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 1,
- },
- ],
- 'ap-northeast-2': [
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 1,
- },
- ],
- 'ap-northeast-3': [
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 1,
- },
- ],
- 'ca-central-1': [
- {
- layerArn:
- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 1,
- },
- ],
- 'eu-north-1': [
- {
- layerArn:
- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 1,
- },
- ],
- 'eu-south-1': [
- {
- layerArn:
- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 1,
- },
- ],
- 'eu-west-3': [
- {
- layerArn:
- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 1,
- },
- ],
- 'me-south-1': [
- {
- layerArn:
- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 1,
- },
- ],
- 'sa-east-1': [
- {
- layerArn:
- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 1,
- },
- ],
- 'us-west-1': [
- {
- layerArn:
- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-fonts-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
- version: 1,
- },
- {
- layerArn:
- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-chromium-x86_64',
- version: 1,
- },
- ],
- },
+ 'ap-northeast-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 4,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 8,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 8,
+ },
+ ],
+ 'ap-south-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 4,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 8,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 8,
+ },
+ ],
+ 'ap-southeast-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 4,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 8,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 8,
+ },
+ ],
+ 'ap-southeast-2': [
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 4,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 8,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 8,
+ },
+ ],
+ 'eu-central-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 4,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 8,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 8,
+ },
+ ],
+ 'eu-west-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 4,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 8,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 8,
+ },
+ ],
+ 'eu-west-2': [
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 4,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 8,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 8,
+ },
+ ],
+ 'us-east-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 9,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 17,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 17,
+ },
+ ],
+ 'us-east-2': [
+ {
+ layerArn:
+ 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 4,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 8,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 8,
+ },
+ ],
+ 'us-west-2': [
+ {
+ layerArn:
+ 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 4,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 8,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 8,
+ },
+ ],
+ 'af-south-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 1,
+ },
+ ],
+ 'ap-east-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 1,
+ },
+ ],
+ 'ap-northeast-2': [
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 1,
+ },
+ ],
+ 'ap-northeast-3': [
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 1,
+ },
+ ],
+ 'ca-central-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 1,
+ },
+ ],
+ 'eu-north-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 1,
+ },
+ ],
+ 'eu-south-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 1,
+ },
+ ],
+ 'eu-west-3': [
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 1,
+ },
+ ],
+ 'me-south-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 1,
+ },
+ ],
+ 'sa-east-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 1,
+ },
+ ],
+ 'us-west-1': [
+ {
+ layerArn:
+ 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-fonts-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
+ version: 1,
+ },
+ {
+ layerArn:
+ 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-chromium-arm64',
+ version: 1,
+ },
+ ],
};
diff --git a/packages/lambda/src/shared/validate-architecture.ts b/packages/lambda/src/shared/validate-architecture.ts
deleted file mode 100644
index 7036a62264..0000000000
--- a/packages/lambda/src/shared/validate-architecture.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-const validArchitectures = ['arm64', 'x86_64'] as const;
-
-export type LambdaArchitecture = typeof validArchitectures[number];
-
-export const validateArchitecture = (architecture: unknown) => {
- if (typeof architecture !== 'string') {
- throw new TypeError(
- 'You must pass an architecture when deploying: One of ' +
- validArchitectures.join(', ')
- );
- }
-
- if (!validArchitectures.find((a) => a === architecture)) {
- throw new TypeError(
- `You must pass an "architecture" when deploying a function: either "arm64" or "x86_64"`
- );
- }
-};
diff --git a/packages/lambda/src/test/integration/deploy-function.test.ts b/packages/lambda/src/test/integration/deploy-function.test.ts
index 482fba2348..980f47a072 100644
--- a/packages/lambda/src/test/integration/deploy-function.test.ts
+++ b/packages/lambda/src/test/integration/deploy-function.test.ts
@@ -19,7 +19,6 @@ test('Should be able to deploy function', async () => {
region: 'us-east-1',
timeoutInSeconds: 120,
createCloudWatchLogGroup: true,
- architecture: 'arm64',
});
expect(functionName).toBe(
expectedFunctionName(2048, 120, DEFAULT_EPHEMERAL_STORAGE_IN_MB)
@@ -34,7 +33,6 @@ test('Should be able to get the function afterwards', async () => {
region: 'us-east-1',
timeoutInSeconds: 120,
createCloudWatchLogGroup: true,
- architecture: 'arm64',
});
expect(functionName).toBe(
expectedFunctionName(2048, 120, DEFAULT_EPHEMERAL_STORAGE_IN_MB)
@@ -72,7 +70,6 @@ test('Should be able to delete the function', async () => {
region: 'us-east-1',
timeoutInSeconds: 120,
createCloudWatchLogGroup: true,
- architecture: 'arm64',
});
expect(functionName).toBe(
expectedFunctionName(2048, 120, DEFAULT_EPHEMERAL_STORAGE_IN_MB)
@@ -100,7 +97,6 @@ test('Should be able to get the function afterwards', async () => {
region: 'us-east-1',
timeoutInSeconds: 120,
createCloudWatchLogGroup: true,
- architecture: 'arm64',
});
expect(functionName).toBe(
expectedFunctionName(2048, 120, DEFAULT_EPHEMERAL_STORAGE_IN_MB)
diff --git a/packages/lambda/src/test/setup.ts b/packages/lambda/src/test/setup.ts
index 82544497b2..eed672ffe1 100644
--- a/packages/lambda/src/test/setup.ts
+++ b/packages/lambda/src/test/setup.ts
@@ -18,9 +18,6 @@ vi.mock('../functions/helpers/print-cloudwatch-helper', () =>
vi.mock('../functions/helpers/get-current-region', () =>
vi.importActual('../functions/helpers/__mocks__/get-current-region')
);
-vi.mock('../functions/helpers/get-current-architecture', () =>
- vi.importActual('../functions/helpers/__mocks__/get-current-architecture')
-);
vi.mock('../functions/helpers/get-browser-instance', () =>
vi.importActual('../functions/helpers/__mocks__/get-browser-instance')
);
diff --git a/packages/lambda/src/test/unit/hosted-layers-match.test.ts b/packages/lambda/src/test/unit/hosted-layers-match.test.ts
index a8a4120d30..20be968b05 100644
--- a/packages/lambda/src/test/unit/hosted-layers-match.test.ts
+++ b/packages/lambda/src/test/unit/hosted-layers-match.test.ts
@@ -1,18 +1,15 @@
import {expect, test} from 'vitest';
-import type {LambdaArchitecture} from '../..';
import {
hostedLayers,
REMOTION_HOSTED_LAYER_ARN,
} from '../../shared/hosted-layers';
test('All hosted layers should match ARN', () => {
- Object.keys(hostedLayers).forEach((arch) => {
- Object.values(hostedLayers[arch as LambdaArchitecture]).forEach((h) => {
- h.forEach(({layerArn}) => {
- expect(layerArn).toMatch(
- new RegExp(REMOTION_HOSTED_LAYER_ARN.replace(/\*/g, '(.*)'))
- );
- });
+ Object.values(hostedLayers).forEach((h) => {
+ h.forEach(({layerArn}) => {
+ expect(layerArn).toMatch(
+ new RegExp(REMOTION_HOSTED_LAYER_ARN.replace(/\*/g, '(.*)'))
+ );
});
});
});
diff --git a/packages/lambda/src/test/unit/price-calculation.test.ts b/packages/lambda/src/test/unit/price-calculation.test.ts
index a1678ec008..963643a162 100644
--- a/packages/lambda/src/test/unit/price-calculation.test.ts
+++ b/packages/lambda/src/test/unit/price-calculation.test.ts
@@ -53,7 +53,6 @@ test('Should not throw while calculating prices when time shifts occur', () => {
lastModified: Date.now() - 2000,
size: 1000000,
},
- architecture: 'x86_64',
diskSizeInMb: 512,
lambdasInvoked: 1,
});
diff --git a/packages/lambda/src/test/unit/pricing.test.ts b/packages/lambda/src/test/unit/pricing.test.ts
index 6c4371d330..2f881bdd5a 100644
--- a/packages/lambda/src/test/unit/pricing.test.ts
+++ b/packages/lambda/src/test/unit/pricing.test.ts
@@ -7,7 +7,6 @@ test('Should calculate costs accurately', () => {
region: 'us-east-1',
durationInMiliseconds: 20000000,
memorySizeInMb: 2048,
- architecture: 'x86_64',
diskSizeInMb: 512,
lambdasInvoked: 1,
})
@@ -17,7 +16,6 @@ test('Should calculate costs accurately', () => {
region: 'us-east-1',
durationInMiliseconds: 20000000,
memorySizeInMb: 2048,
- architecture: 'x86_64',
diskSizeInMb: 10240,
lambdasInvoked: 1,
})
@@ -27,7 +25,6 @@ test('Should calculate costs accurately', () => {
region: 'us-east-1',
durationInMiliseconds: 20000000,
memorySizeInMb: 2048,
- architecture: 'arm64',
diskSizeInMb: 10240,
lambdasInvoked: 1,
})