@remotion/lambda 3.0.0-lambda.135 → 3.0.0-lambda.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc.js +15 -0
- package/dist/admin/make-layer-public.js +1 -12
- package/dist/admin/make-layer-public.js.map +1 -1
- package/dist/admin/replicate-binaries.d.ts +2 -0
- package/dist/admin/replicate-binaries.d.ts.map +1 -0
- package/dist/admin/replicate-binaries.js +50 -0
- package/dist/admin/replicate-binaries.js.map +1 -0
- package/dist/api/bucket-exists.d.ts +1 -1
- package/dist/api/bucket-exists.d.ts.map +1 -1
- package/dist/api/bundle-lambda.d.ts +2 -0
- package/dist/api/bundle-lambda.d.ts.map +1 -0
- package/dist/api/bundle-lambda.js +34 -0
- package/dist/api/bundle-lambda.js.map +1 -0
- package/dist/api/bundle-remotion.d.ts +6 -0
- package/dist/api/bundle-remotion.d.ts.map +1 -0
- package/dist/api/bundle-remotion.js +12 -0
- package/dist/api/bundle-remotion.js.map +1 -0
- package/dist/api/create-bucket.d.ts +1 -1
- package/dist/api/create-bucket.d.ts.map +1 -1
- package/dist/api/create-function.d.ts +1 -1
- package/dist/api/create-function.d.ts.map +1 -1
- package/dist/api/create-function.js +1 -0
- package/dist/api/create-function.js.map +1 -1
- package/dist/api/delete-site.d.ts +1 -1
- package/dist/api/delete-site.d.ts.map +1 -1
- package/dist/api/deploy-function.js +2 -2
- package/dist/api/deploy-function.js.map +1 -1
- package/dist/api/deploy-lambda.d.ts +7 -0
- package/dist/api/deploy-lambda.d.ts.map +1 -0
- package/dist/api/deploy-lambda.js +48 -0
- package/dist/api/deploy-lambda.js.map +1 -0
- package/dist/api/deploy-project.d.ts +28 -0
- package/dist/api/deploy-project.d.ts.map +1 -0
- package/dist/api/deploy-project.js +58 -0
- package/dist/api/deploy-project.js.map +1 -0
- package/dist/api/download-video.d.ts +2 -0
- package/dist/api/download-video.d.ts.map +1 -1
- package/dist/api/download-video.js +14 -25
- package/dist/api/download-video.js.map +1 -1
- package/dist/api/enable-s3-website.d.ts +1 -1
- package/dist/api/enable-s3-website.d.ts.map +1 -1
- package/dist/api/ensure-lambda-binaries.d.ts +11 -0
- package/dist/api/ensure-lambda-binaries.d.ts.map +1 -0
- package/dist/api/ensure-lambda-binaries.js +60 -0
- package/dist/api/ensure-lambda-binaries.js.map +1 -0
- package/dist/api/get-deployed-lambdas.d.ts +10 -0
- package/dist/api/get-deployed-lambdas.d.ts.map +1 -0
- package/dist/api/get-deployed-lambdas.js +31 -0
- package/dist/api/get-deployed-lambdas.js.map +1 -0
- package/dist/api/get-function-version.d.ts +7 -0
- package/dist/api/get-function-version.d.ts.map +1 -0
- package/dist/api/get-function-version.js +27 -0
- package/dist/api/get-function-version.js.map +1 -0
- package/dist/api/mock-functions.d.ts +1 -1
- package/dist/api/mock-functions.d.ts.map +1 -1
- package/dist/api/upload-dir.d.ts +1 -1
- package/dist/api/upload-dir.d.ts.map +1 -1
- package/dist/benchmark.d.ts +2 -0
- package/dist/benchmark.d.ts.map +1 -0
- package/dist/benchmark.js +30 -0
- package/dist/benchmark.js.map +1 -0
- package/dist/build-render/index.js +126181 -0
- package/dist/chunked-upload.d.ts +2 -0
- package/dist/chunked-upload.d.ts.map +1 -0
- package/dist/chunked-upload.js +34 -0
- package/dist/chunked-upload.js.map +1 -0
- package/dist/cli/cleanup.d.ts +3 -1
- package/dist/cli/cleanup.d.ts.map +1 -1
- package/dist/cli/cleanup.js +74 -0
- package/dist/cli/cleanup.js.map +1 -1
- package/dist/cli/commands/render/progress.d.ts +7 -3
- package/dist/cli/commands/render/progress.d.ts.map +1 -1
- package/dist/cli/commands/render/progress.js +9 -10
- package/dist/cli/commands/render/progress.js.map +1 -1
- package/dist/cli/commands/render/render.d.ts.map +1 -1
- package/dist/cli/commands/render/render.js +22 -8
- package/dist/cli/commands/render/render.js.map +1 -1
- package/dist/cli/commands/render.d.ts +3 -0
- package/dist/cli/commands/render.d.ts.map +1 -0
- package/dist/cli/commands/render.js +75 -0
- package/dist/cli/commands/render.js.map +1 -0
- package/dist/cli/commands/sites/upload.d.ts +3 -0
- package/dist/cli/commands/sites/upload.d.ts.map +1 -0
- package/dist/cli/commands/sites/upload.js +111 -0
- package/dist/cli/commands/sites/upload.js.map +1 -0
- package/dist/cli/deploy.d.ts +3 -0
- package/dist/cli/deploy.d.ts.map +1 -0
- package/dist/cli/deploy.js +13 -0
- package/dist/cli/deploy.js.map +1 -0
- package/dist/cli/get-aws-region.js +2 -2
- package/dist/cli/get-aws-region.js.map +1 -1
- package/dist/cli/policies.d.ts +3 -0
- package/dist/cli/policies.d.ts.map +1 -0
- package/dist/cli/policies.js +59 -0
- package/dist/cli/policies.js.map +1 -0
- package/dist/cli/render.d.ts +3 -0
- package/dist/cli/render.d.ts.map +1 -0
- package/dist/cli/render.js +96 -0
- package/dist/cli/render.js.map +1 -0
- package/dist/cli/upload.d.ts +3 -0
- package/dist/cli/upload.d.ts.map +1 -0
- package/dist/cli/upload.js +112 -0
- package/dist/cli/upload.js.map +1 -0
- package/dist/functions/chunk-optimization/write-profile.d.ts +8 -0
- package/dist/functions/chunk-optimization/write-profile.d.ts.map +1 -0
- package/dist/functions/chunk-optimization/write-profile.js +18 -0
- package/dist/functions/chunk-optimization/write-profile.js.map +1 -0
- package/dist/functions/get-progress.d.ts +27 -0
- package/dist/functions/get-progress.d.ts.map +1 -0
- package/dist/functions/get-progress.js +161 -0
- package/dist/functions/get-progress.js.map +1 -0
- package/dist/functions/helpers/calculate-chunk-times.js +5 -5
- package/dist/functions/helpers/calculate-chunk-times.js.map +1 -1
- package/dist/functions/helpers/clean-tmpdir.d.ts.map +1 -1
- package/dist/functions/helpers/clean-tmpdir.js +1 -0
- package/dist/functions/helpers/clean-tmpdir.js.map +1 -1
- package/dist/functions/helpers/concat-videos.d.ts.map +1 -1
- package/dist/functions/helpers/concat-videos.js +3 -5
- package/dist/functions/helpers/concat-videos.js.map +1 -1
- package/dist/functions/helpers/create-post-render-data.js +1 -1
- package/dist/functions/helpers/create-post-render-data.js.map +1 -1
- package/dist/functions/helpers/expected-out-name.d.ts.map +1 -1
- package/dist/functions/helpers/expected-out-name.js +2 -1
- package/dist/functions/helpers/expected-out-name.js.map +1 -1
- package/dist/functions/helpers/get-browser-instance.d.ts +2 -2
- package/dist/functions/helpers/get-browser-instance.d.ts.map +1 -1
- package/dist/functions/helpers/get-browser-instance.js +1 -1
- package/dist/functions/helpers/get-browser-instance.js.map +1 -1
- package/dist/functions/helpers/get-current-region.d.ts +1 -1
- package/dist/functions/helpers/get-current-region.d.ts.map +1 -1
- package/dist/functions/helpers/get-current-region.js +2 -2
- package/dist/functions/helpers/get-current-region.js.map +1 -1
- package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts.map +1 -1
- package/dist/functions/helpers/get-lambdas-invoked-stats.js +3 -2
- package/dist/functions/helpers/get-lambdas-invoked-stats.js.map +1 -1
- package/dist/functions/helpers/read-with-progress.d.ts +15 -0
- package/dist/functions/helpers/read-with-progress.d.ts.map +1 -0
- package/dist/functions/helpers/read-with-progress.js +27 -0
- package/dist/functions/helpers/read-with-progress.js.map +1 -0
- package/dist/functions/helpers/validate-composition.d.ts +2 -2
- package/dist/functions/helpers/validate-composition.d.ts.map +1 -1
- package/dist/functions/helpers/validate-composition.js +1 -1
- package/dist/functions/helpers/validate-composition.js.map +1 -1
- package/dist/functions/launch.d.ts.map +1 -1
- package/dist/functions/launch.js +2 -1
- package/dist/functions/launch.js.map +1 -1
- package/dist/functions/renderer.d.ts.map +1 -1
- package/dist/functions/renderer.js +16 -48
- package/dist/functions/renderer.js.map +1 -1
- package/dist/functions/still.d.ts.map +1 -1
- package/dist/functions/still.js +0 -1
- package/dist/functions/still.js.map +1 -1
- package/dist/pricing/aws-regions.d.ts +1 -1
- package/dist/pricing/aws-regions.d.ts.map +1 -1
- package/dist/pricing/aws-regions.js +3 -14
- package/dist/pricing/aws-regions.js.map +1 -1
- package/dist/pricing/price-per-1-s.d.ts +8 -0
- package/dist/pricing/price-per-1-s.d.ts.map +1 -1
- package/dist/pricing/price-per-1-s.js +72 -190
- package/dist/pricing/price-per-1-s.js.map +1 -1
- package/dist/rendering/chunked-concatenation.d.ts +3 -0
- package/dist/rendering/chunked-concatenation.d.ts.map +1 -0
- package/dist/rendering/chunked-concatenation.js +38 -0
- package/dist/rendering/chunked-concatenation.js.map +1 -0
- package/dist/rendering/create-named-pipe.d.ts +8 -0
- package/dist/rendering/create-named-pipe.d.ts.map +1 -0
- package/dist/rendering/create-named-pipe.js +41 -0
- package/dist/rendering/create-named-pipe.js.map +1 -0
- package/dist/rendering/mount-tmp-fs.d.ts +2 -0
- package/dist/rendering/mount-tmp-fs.d.ts.map +1 -0
- package/dist/rendering/mount-tmp-fs.js +19 -0
- package/dist/rendering/mount-tmp-fs.js.map +1 -0
- package/dist/scripts2.d.ts +1 -0
- package/dist/scripts2.d.ts.map +1 -0
- package/dist/scripts2.js +2 -0
- package/dist/scripts2.js.map +1 -0
- package/dist/shared/constants.d.ts +3 -5
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +4 -6
- package/dist/shared/constants.js.map +1 -1
- package/dist/shared/download-with-progress.d.ts +1 -0
- package/dist/shared/download-with-progress.d.ts.map +1 -0
- package/dist/shared/download-with-progress.js +2 -0
- package/dist/shared/download-with-progress.js.map +1 -0
- package/dist/shared/hosted-layers.d.ts +1 -1
- package/dist/shared/hosted-layers.d.ts.map +1 -1
- package/dist/shared/hosted-layers.js +30 -184
- package/dist/shared/hosted-layers.js.map +1 -1
- package/dist/shared/parse-chunk-timing-key.d.ts +7 -0
- package/dist/shared/parse-chunk-timing-key.d.ts.map +1 -0
- package/dist/shared/parse-chunk-timing-key.js +17 -0
- package/dist/shared/parse-chunk-timing-key.js.map +1 -0
- package/dist/shared/parse-lambda-timings-key.d.ts +0 -1
- package/dist/shared/parse-lambda-timings-key.d.ts.map +1 -1
- package/dist/shared/parse-lambda-timings-key.js +1 -2
- package/dist/shared/parse-lambda-timings-key.js.map +1 -1
- package/package.json +12 -11
- package/remotionlambda.zip +0 -0
- package/dist/cli/helpers/__mocks__.d.ts +0 -2
- package/dist/cli/helpers/__mocks__.d.ts.map +0 -1
- package/dist/cli/helpers/__mocks__.js +0 -8
- package/dist/cli/helpers/__mocks__.js.map +0 -1
- package/dist/functions/helpers/upload-logs.d.ts +0 -1
- package/dist/functions/helpers/upload-logs.d.ts.map +0 -1
- package/dist/functions/helpers/upload-logs.js +0 -2
- package/dist/functions/helpers/upload-logs.js.map +0 -1
- package/dist/shared/normalize-serve-url.d.ts +0 -2
- package/dist/shared/normalize-serve-url.d.ts.map +0 -1
- package/dist/shared/normalize-serve-url.js +0 -20
- package/dist/shared/normalize-serve-url.js.map +0 -1
package/.prettierrc.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
singleQuote: true,
|
|
3
|
+
bracketSpacing: false,
|
|
4
|
+
jsxBracketSameLine: false,
|
|
5
|
+
plugins: [require.resolve('prettier-plugin-organize-imports')],
|
|
6
|
+
useTabs: true,
|
|
7
|
+
overrides: [
|
|
8
|
+
{
|
|
9
|
+
files: ['*.yml'],
|
|
10
|
+
options: {
|
|
11
|
+
singleQuote: false,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
};
|
|
@@ -8,26 +8,15 @@ const aws_clients_1 = require("../shared/aws-clients");
|
|
|
8
8
|
const constants_1 = require("../shared/constants");
|
|
9
9
|
const runtimes = ['nodejs14.x'];
|
|
10
10
|
const layerInfo = {
|
|
11
|
-
'af-south-1': [],
|
|
12
|
-
'ap-east-1': [],
|
|
13
11
|
'ap-northeast-1': [],
|
|
14
|
-
'ap-northeast-2': [],
|
|
15
|
-
'ap-northeast-3': [],
|
|
16
12
|
'ap-south-1': [],
|
|
17
13
|
'ap-southeast-1': [],
|
|
18
14
|
'ap-southeast-2': [],
|
|
19
|
-
'ca-central-1': [],
|
|
20
15
|
'eu-central-1': [],
|
|
21
|
-
'eu-north-1': [],
|
|
22
|
-
'eu-south-1': [],
|
|
23
16
|
'eu-west-1': [],
|
|
24
17
|
'eu-west-2': [],
|
|
25
|
-
'eu-west-3': [],
|
|
26
|
-
'me-south-1': [],
|
|
27
|
-
'sa-east-1': [],
|
|
28
18
|
'us-east-1': [],
|
|
29
19
|
'us-east-2': [],
|
|
30
|
-
'us-west-1': [],
|
|
31
20
|
'us-west-2': [],
|
|
32
21
|
};
|
|
33
22
|
const makeLayerPublic = async () => {
|
|
@@ -38,7 +27,7 @@ const makeLayerPublic = async () => {
|
|
|
38
27
|
const { Version, LayerArn } = await (0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.PublishLayerVersionCommand({
|
|
39
28
|
Content: {
|
|
40
29
|
S3Bucket: 'remotionlambda-binaries-' + region,
|
|
41
|
-
S3Key: `remotion-layer-${layer}-
|
|
30
|
+
S3Key: `remotion-layer-${layer}-v2.zip`,
|
|
42
31
|
},
|
|
43
32
|
LayerName: layerName,
|
|
44
33
|
LicenseInfo: layer === 'chromium'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-layer-public.js","sourceRoot":"","sources":["../../src/admin/make-layer-public.ts"],"names":[],"mappings":";;AAAA,0DAGgC;AAChC,+CAAoC;AAEpC,8CAAyC;AACzC,wCAAuC;AACvC,uDAAsD;AACtD,mDAAoD;AAEpD,MAAM,QAAQ,GAAa,CAAC,YAAY,CAAC,CAAC;AAE1C,MAAM,SAAS,GAEX;IACH,
|
|
1
|
+
{"version":3,"file":"make-layer-public.js","sourceRoot":"","sources":["../../src/admin/make-layer-public.ts"],"names":[],"mappings":";;AAAA,0DAGgC;AAChC,+CAAoC;AAEpC,8CAAyC;AACzC,wCAAuC;AACvC,uDAAsD;AACtD,mDAAoD;AAEpD,MAAM,QAAQ,GAAa,CAAC,YAAY,CAAC,CAAC;AAE1C,MAAM,SAAS,GAEX;IACH,gBAAgB,EAAE,EAAE;IACpB,YAAY,EAAE,EAAE;IAChB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AC,EAAE;gBACvB,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;aACvB;YAED,IAAI,CAAC,QAAQ,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;aACpC;YAED,IAAI,CAAC,OAAO,EAAE;gBACb,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;aACnC;YAED,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;gBACtB,QAAQ,EAAE,QAAQ;gBAClB,OAAO,EAAE,OAAO;aAChB,CAAC,CAAC;YACH,OAAO,CAAC,GAAG,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAC,CAAC,CAAC;SACjC;KACD;AACF,CAAC,CAAC;AAEF,eAAe,EAAE;KACf,IAAI,CAAC,GAAG,EAAE;IACV,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC1B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACd,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,IAAA,WAAI,EAAC,CAAC,CAAC,CAAC;AACT,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replicate-binaries.d.ts","sourceRoot":"","sources":["../../src/admin/replicate-binaries.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
7
|
+
const cli_1 = require("@remotion/cli");
|
|
8
|
+
const log_1 = require("@remotion/cli/dist/log");
|
|
9
|
+
const fs_1 = require("fs");
|
|
10
|
+
const path_1 = __importDefault(require("path"));
|
|
11
|
+
const aws_regions_1 = require("../pricing/aws-regions");
|
|
12
|
+
const aws_clients_1 = require("../shared/aws-clients");
|
|
13
|
+
const bucketExistsInRegion = async ({ bucketName, region, }) => {
|
|
14
|
+
var _a;
|
|
15
|
+
try {
|
|
16
|
+
const bucket = await aws_clients_1.getS3Client(region).send(new client_s3_1.GetBucketLocationCommand({
|
|
17
|
+
Bucket: bucketName,
|
|
18
|
+
}));
|
|
19
|
+
return ((_a = bucket.LocationConstraint) !== null && _a !== void 0 ? _a : 'us-east-1') === region;
|
|
20
|
+
}
|
|
21
|
+
catch (err) {
|
|
22
|
+
if (err.Code === 'NoSuchBucket') {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
throw err;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
cli_1.CliInternals.xns(async () => {
|
|
29
|
+
for (const region of aws_regions_1.AWS_REGIONS) {
|
|
30
|
+
log_1.Log.info('Region:', region);
|
|
31
|
+
const client = aws_clients_1.getS3Client(region);
|
|
32
|
+
const bucketExists = await bucketExistsInRegion({ bucketName, region });
|
|
33
|
+
if (!bucketExists) {
|
|
34
|
+
await client.send(new client_s3_1.CreateBucketCommand({
|
|
35
|
+
ACL: 'public-read',
|
|
36
|
+
Bucket: bucketName,
|
|
37
|
+
}));
|
|
38
|
+
log_1.Log.info(`Bucket ${bucketName} created.`);
|
|
39
|
+
}
|
|
40
|
+
const Body = fs_1.createReadStream(path_1.default.join(__dirname, 'remotion.zip'));
|
|
41
|
+
log_1.Log.info(`Uploading ${region}...`);
|
|
42
|
+
await client.send(new client_s3_1.PutObjectCommand({
|
|
43
|
+
Key: 'remotion.zip',
|
|
44
|
+
Bucket: bucketName,
|
|
45
|
+
Body,
|
|
46
|
+
ACL: 'public-read',
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=replicate-binaries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replicate-binaries.js","sourceRoot":"","sources":["../../src/admin/replicate-binaries.ts"],"names":[],"mappings":";;;;;AAAA,kDAI4B;AAC5B,uCAA2C;AAC3C,gDAA2C;AAC3C,2BAAoC;AACpC,gDAAwB;AACxB,wDAA8D;AAC9D,uDAAkD;AAElD,MAAM,oBAAoB,GAAG,KAAK,EAAE,EACnC,UAAU,EACV,MAAM,GAIN,EAAE,EAAE;;IACJ,IAAI;QACH,MAAM,MAAM,GAAG,MAAM,yBAAW,CAAC,MAAM,CAAC,CAAC,IAAI,CAC5C,IAAI,oCAAwB,CAAC;YAC5B,MAAM,EAAE,UAAU;SAClB,CAAC,CACF,CAAC;QAEF,OAAO,CAAC,MAAA,MAAM,CAAC,kBAAkB,mCAAI,WAAW,CAAC,KAAK,MAAM,CAAC;KAC7D;IAAC,OAAO,GAAG,EAAE;QACb,IAAK,GAAsB,CAAC,IAAI,KAAK,cAAc,EAAE;YACpD,OAAO,KAAK,CAAC;SACb;QAED,MAAM,GAAG,CAAC;KACV;AACF,CAAC,CAAC;AAEF,kBAAY,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE;IAC3B,KAAK,MAAM,MAAM,IAAI,yBAAW,EAAE;QACjC,SAAG,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAC5B,MAAM,MAAM,GAAG,yBAAW,CAAC,MAAM,CAAC,CAAC;QAEnC,MAAM,YAAY,GAAG,MAAM,oBAAoB,CAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC,CAAC;QACtE,IAAI,CAAC,YAAY,EAAE;YAClB,MAAM,MAAM,CAAC,IAAI,CAChB,IAAI,+BAAmB,CAAC;gBACvB,GAAG,EAAE,aAAa;gBAClB,MAAM,EAAE,UAAU;aAClB,CAAC,CACF,CAAC;YACF,SAAG,CAAC,IAAI,CAAC,UAAU,UAAU,WAAW,CAAC,CAAC;SAC1C;QAED,MAAM,IAAI,GAAG,qBAAgB,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC;QAEpE,SAAG,CAAC,IAAI,CAAC,aAAa,MAAM,KAAK,CAAC,CAAC;QACnC,MAAM,MAAM,CAAC,IAAI,CAChB,IAAI,4BAAgB,CAAC;YACpB,GAAG,EAAE,cAAc;YACnB,MAAM,EAAE,UAAU;YAClB,IAAI;YACJ,GAAG,EAAE,aAAa;SAClB,CAAC,CACF,CAAC;KACF;AACF,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bucket-exists.d.ts","sourceRoot":"","sources":["../../src/api/bucket-exists.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"bucket-exists.d.ts","sourceRoot":"","sources":["../../src/api/bucket-exists.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,oBAAoB;gBAKpB,MAAM;YACV,SAAS;yBACI,MAAM,GAAG,IAAI;sBAkBlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-lambda.d.ts","sourceRoot":"","sources":["../../src/api/bundle-lambda.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,uBAwBxB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.bundleLambda = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const tmpdir_1 = require("../shared/tmpdir");
|
|
10
|
+
const esbuild = require("esbuild");
|
|
11
|
+
const zl = require("zip-lib");
|
|
12
|
+
const bundleLambda = async () => {
|
|
13
|
+
var _a;
|
|
14
|
+
const outdir = path_1.default.join(__dirname, '..', `build-render`);
|
|
15
|
+
fs_1.default.mkdirSync(outdir, {
|
|
16
|
+
recursive: true,
|
|
17
|
+
});
|
|
18
|
+
const outfile = path_1.default.join(outdir, 'index.js');
|
|
19
|
+
((_a = fs_1.default.rmSync) !== null && _a !== void 0 ? _a : fs_1.default.rmdirSync)(outdir, { recursive: true });
|
|
20
|
+
fs_1.default.mkdirSync(outdir, { recursive: true });
|
|
21
|
+
const template = require.resolve(path_1.default.join(__dirname, '..', 'functions', 'index'));
|
|
22
|
+
await esbuild.build({
|
|
23
|
+
platform: 'node',
|
|
24
|
+
target: 'node14',
|
|
25
|
+
bundle: true,
|
|
26
|
+
outfile,
|
|
27
|
+
entryPoints: [template],
|
|
28
|
+
});
|
|
29
|
+
const out = path_1.default.join(tmpdir_1.tmpDir('remotion-fn'), `function-render.zip`);
|
|
30
|
+
await zl.archiveFolder(outdir, out);
|
|
31
|
+
return out;
|
|
32
|
+
};
|
|
33
|
+
exports.bundleLambda = bundleLambda;
|
|
34
|
+
//# sourceMappingURL=bundle-lambda.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-lambda.js","sourceRoot":"","sources":["../../src/api/bundle-lambda.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,6CAAwC;AACxC,mCAAoC;AACpC,8BAA+B;AAExB,MAAM,YAAY,GAAG,KAAK,IAAI,EAAE;;IACtC,MAAM,MAAM,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;IAC1D,YAAE,CAAC,SAAS,CAAC,MAAM,EAAE;QACpB,SAAS,EAAE,IAAI;KACf,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,cAAI,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE9C,CAAC,MAAA,YAAE,CAAC,MAAM,mCAAI,YAAE,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IACvD,YAAE,CAAC,SAAS,CAAC,MAAM,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAC/B,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAChD,CAAC;IAEF,MAAM,OAAO,CAAC,KAAK,CAAC;QACnB,QAAQ,EAAE,MAAM;QAChB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;QACZ,OAAO;QACP,WAAW,EAAE,CAAC,QAAQ,CAAC;KACvB,CAAC,CAAC;IAEH,MAAM,GAAG,GAAG,cAAI,CAAC,IAAI,CAAC,eAAM,CAAC,aAAa,CAAC,EAAE,qBAAqB,CAAC,CAAC;IACpE,MAAM,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,OAAO,GAAG,CAAC;AACZ,CAAC,CAAC;AAxBW,QAAA,YAAY,gBAwBvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-remotion.d.ts","sourceRoot":"","sources":["../../src/api/bundle-remotion.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;eAKf,MAAM;2BACM,MAAM,KAAK,IAAI;gBAC1B,MAAM;qBAKlB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bundleRemotion = void 0;
|
|
4
|
+
const bundler_1 = require("@remotion/bundler");
|
|
5
|
+
// TODO: Necessary? No
|
|
6
|
+
const bundleRemotion = ({ entryFile, onProgress, publicPath, }) => {
|
|
7
|
+
return bundler_1.bundle(entryFile, onProgress, {
|
|
8
|
+
publicPath,
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.bundleRemotion = bundleRemotion;
|
|
12
|
+
//# sourceMappingURL=bundle-remotion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-remotion.js","sourceRoot":"","sources":["../../src/api/bundle-remotion.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AAEzC,sBAAsB;AACf,MAAM,cAAc,GAAG,CAAC,EAC9B,SAAS,EACT,UAAU,EACV,UAAU,GAKV,EAAE,EAAE;IACJ,OAAO,gBAAM,CAAC,SAAS,EAAE,UAAU,EAAE;QACpC,UAAU;KACV,CAAC,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,cAAc,kBAYzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-bucket.d.ts","sourceRoot":"","sources":["../../src/api/create-bucket.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"create-bucket.d.ts","sourceRoot":"","sources":["../../src/api/create-bucket.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,YAAY;YAIhB,SAAS;gBACL,MAAM;mBAQlB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AwsRegion } from '
|
|
1
|
+
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
2
|
export declare const createFunction: ({ createCloudWatchLogGroup, region, zipFile, functionName, accountId, memorySizeInMb, timeoutInSeconds, }: {
|
|
3
3
|
createCloudWatchLogGroup: boolean;
|
|
4
4
|
region: AwsRegion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-function.d.ts","sourceRoot":"","sources":["../../src/api/create-function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-function.d.ts","sourceRoot":"","sources":["../../src/api/create-function.ts"],"names":[],"mappings":"AAaA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAKjD,eAAO,MAAM,cAAc;8BASA,OAAO;YACzB,SAAS;aACR,MAAM;kBACD,MAAM;eACT,MAAM;oBACD,MAAM;sBACJ,MAAM;;;EA2CxB,CAAC"}
|
|
@@ -30,6 +30,7 @@ const createFunction = async ({ createCloudWatchLogGroup, region, zipFile, funct
|
|
|
30
30
|
MemorySize: memorySizeInMb,
|
|
31
31
|
Timeout: timeoutInSeconds,
|
|
32
32
|
Layers: hosted_layers_1.hostedLayers[region].map(({ layerArn, version }) => `${layerArn}:${version}`),
|
|
33
|
+
Architectures: ['arm64'],
|
|
33
34
|
}));
|
|
34
35
|
await (0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.PutFunctionEventInvokeConfigCommand({
|
|
35
36
|
MaximumRetryAttempts: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-function.js","sourceRoot":"","sources":["../../src/api/create-function.ts"],"names":[],"mappings":";;;AAAA,4EAGyC;AACzC,0DAGgC;AAChC,2BAAgC;
|
|
1
|
+
{"version":3,"file":"create-function.js","sourceRoot":"","sources":["../../src/api/create-function.ts"],"names":[],"mappings":";;;AAAA,4EAGyC;AACzC,0DAGgC;AAChC,2BAAgC;AAChC,0CAGqB;AAErB,uDAA+E;AAC/E,2DAAqD;AACrD,wEAA4D;AAErD,MAAM,cAAc,GAAG,KAAK,EAAE,EACpC,wBAAwB,EACxB,MAAM,EACN,OAAO,EACP,YAAY,EACZ,SAAS,EACT,cAAc,EACd,gBAAgB,GAShB,EAAE,EAAE;IACJ,IAAI,wBAAwB,EAAE;QAC7B,MAAM,IAAA,qCAAuB,EAAC,MAAM,CAAC,CAAC,IAAI,CACzC,IAAI,8CAAqB,CAAC;YACzB,YAAY,EAAE,GAAG,2BAAgB,GAAG,YAAY,EAAE;SAClD,CAAC,CACF,CAAC;QAEF,MAAM,IAAA,qCAAuB,EAAC,MAAM,CAAC,CAAC,IAAI,CACzC,IAAI,kDAAyB,CAAC;YAC7B,YAAY,EAAE,GAAG,2BAAgB,GAAG,YAAY,EAAE;YAClD,eAAe,EAAE,8CAAmC;SACpD,CAAC,CACF,CAAC;KACF;IAED,MAAM,EAAC,YAAY,EAAC,GAAG,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC,IAAI,CACxD,IAAI,qCAAqB,CAAC;QACzB,IAAI,EAAE;YACL,OAAO,EAAE,IAAA,iBAAY,EAAC,OAAO,CAAC;SAC9B;QACD,YAAY,EAAE,YAAY;QAC1B,OAAO,EAAE,eAAe;QACxB,IAAI,EAAE,gBAAgB,SAAS,SAAS,4BAAS,EAAE;QACnD,OAAO,EAAE,YAAY;QACrB,WAAW,EAAE,2BAA2B;QACxC,UAAU,EAAE,cAAc;QAC1B,OAAO,EAAE,gBAAgB;QACzB,MAAM,EAAE,4BAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAC/B,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAC,EAAE,EAAE,CAAC,GAAG,QAAQ,IAAI,OAAO,EAAE,CACjD;QACD,aAAa,EAAE,CAAC,OAAO,CAAC;KACxB,CAAC,CACF,CAAC;IACF,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC,IAAI,CACjC,IAAI,mDAAmC,CAAC;QACvC,oBAAoB,EAAE,CAAC;QACvB,YAAY;KACZ,CAAC,CACF,CAAC;IAEF,OAAO,EAAC,YAAY,EAAC,CAAC;AACvB,CAAC,CAAC;AA1DW,QAAA,cAAc,kBA0DzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-site.d.ts","sourceRoot":"","sources":["../../src/api/delete-site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"delete-site.d.ts","sourceRoot":"","sources":["../../src/api/delete-site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAMjD,oBAAY,mBAAmB,GAAG;IACjC,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,CAAC;IAClB,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,KAAK,IAAI,CAAC;CAC5E,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IAClC,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,0DAKpB,mBAAmB,KAAG,QAAQ,oBAAoB,CAwCpD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.deployFunction = void 0;
|
|
4
|
-
const
|
|
4
|
+
const get_functions_1 = require("../api/get-functions");
|
|
5
5
|
const constants_1 = require("../shared/constants");
|
|
6
6
|
const docs_url_1 = require("../shared/docs-url");
|
|
7
7
|
const function_zip_path_1 = require("../shared/function-zip-path");
|
|
@@ -26,7 +26,7 @@ const deployFunction = async (options) => {
|
|
|
26
26
|
(0, validate_aws_region_1.validateAwsRegion)(options.region);
|
|
27
27
|
const fnNameRender = constants_1.RENDER_FN_PREFIX + (0, random_hash_1.randomHash)();
|
|
28
28
|
const accountId = await (0, get_account_id_1.getAccountId)({ region: options.region });
|
|
29
|
-
const fns = await (0,
|
|
29
|
+
const fns = await (0, get_functions_1.getFunctions)({
|
|
30
30
|
compatibleOnly: true,
|
|
31
31
|
region: options.region,
|
|
32
32
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-function.js","sourceRoot":"","sources":["../../src/api/deploy-function.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"de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cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;KAC1C,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;QAC1B,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACtD;IAED,OAAO;QACN,YAAY,EAAE,OAAO,CAAC,YAAY;KAClC,CAAC;AACH,CAAC,CAAC;AA7CW,QAAA,cAAc,kBA6CzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy-lambda.d.ts","sourceRoot":"","sources":["../../src/api/deploy-lambda.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAOjD,eAAO,MAAM,YAAY,YAAmB;IAAC,MAAM,EAAE,SAAS,CAAA;CAAC;;EA0C9D,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deployLambda = void 0;
|
|
4
|
+
const client_iam_1 = require("@aws-sdk/client-iam");
|
|
5
|
+
const client_lambda_1 = require("@aws-sdk/client-lambda");
|
|
6
|
+
const fs_1 = require("fs");
|
|
7
|
+
const aws_clients_1 = require("../shared/aws-clients");
|
|
8
|
+
const constants_1 = require("../shared/constants");
|
|
9
|
+
const random_hash_1 = require("../shared/random-hash");
|
|
10
|
+
const bundle_lambda_1 = require("./bundle-lambda");
|
|
11
|
+
const ensure_lambda_binaries_1 = require("./ensure-lambda-binaries");
|
|
12
|
+
const deployLambda = async (options) => {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
const { layerArn } = await ensure_lambda_binaries_1.ensureLambdaBinaries(options.region);
|
|
15
|
+
console.log('Done creating layers');
|
|
16
|
+
const fnNameRender = constants_1.RENDER_FN_PREFIX + random_hash_1.randomHash();
|
|
17
|
+
const renderOut = await bundle_lambda_1.bundleLambda('render');
|
|
18
|
+
console.log('done Bundling');
|
|
19
|
+
const user = await aws_clients_1.getIamClient(options.region).send(new client_iam_1.GetUserCommand({}));
|
|
20
|
+
const accountId = (_b = (_a = user.User) === null || _a === void 0 ? void 0 : _a.Arn) === null || _b === void 0 ? void 0 : _b.match(/aws:iam::([0-9]+)/);
|
|
21
|
+
if (!accountId) {
|
|
22
|
+
throw new Error('Cannot get account ID');
|
|
23
|
+
}
|
|
24
|
+
const created = await aws_clients_1.getLambdaClient(options.region).send(new client_lambda_1.CreateFunctionCommand({
|
|
25
|
+
Code: {
|
|
26
|
+
ZipFile: fs_1.readFileSync(renderOut),
|
|
27
|
+
},
|
|
28
|
+
FunctionName: fnNameRender,
|
|
29
|
+
Handler: 'index.handler',
|
|
30
|
+
// TODO: Give helpful suggestion if user did not create role
|
|
31
|
+
Role: `arn:aws:iam::${accountId[1]}:role/remotion-lambda-role`,
|
|
32
|
+
Runtime: 'nodejs14.x',
|
|
33
|
+
Description: 'Renders a Remotion video.',
|
|
34
|
+
MemorySize: constants_1.MEMORY_SIZE,
|
|
35
|
+
// TODO: Set timeout
|
|
36
|
+
Timeout: 120,
|
|
37
|
+
Layers: [layerArn],
|
|
38
|
+
}));
|
|
39
|
+
console.log('lambdas created');
|
|
40
|
+
if (!created.FunctionName) {
|
|
41
|
+
throw new Error('Lambda was created but has no name');
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
functionName: created.FunctionName,
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
exports.deployLambda = deployLambda;
|
|
48
|
+
//# sourceMappingURL=deploy-lambda.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy-lambda.js","sourceRoot":"","sources":["../../src/api/deploy-lambda.ts"],"names":[],"mappings":";;;AAAA,oDAAmD;AACnD,0DAA6D;AAC7D,2BAAgC;AAEhC,uDAAoE;AACpE,mDAAkE;AAClE,uDAAiD;AACjD,mDAA6C;AAC7C,qEAA8D;AAEvD,MAAM,YAAY,G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E;QAC1B,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACtD;IAED,OAAO;QACN,YAAY,EAAE,OAAO,CAAC,YAAY;KAClC,CAAC;AACH,CAAC,CAAC;AA1CW,QAAA,YAAY,gBA0CvB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { WebpackOverrideFn } from 'remotion';
|
|
2
|
+
import { AwsRegion } from '../pricing/aws-regions';
|
|
3
|
+
import { UploadDirProgress } from './upload-dir';
|
|
4
|
+
declare type DeployProjectInput = {
|
|
5
|
+
entryPoint: string;
|
|
6
|
+
bucketName: string;
|
|
7
|
+
region: AwsRegion;
|
|
8
|
+
options?: {
|
|
9
|
+
onBundleProgress?: (progress: number) => void;
|
|
10
|
+
onWebsiteActivated?: () => void;
|
|
11
|
+
onUploadProgress?: (upload: UploadDirProgress) => void;
|
|
12
|
+
webpackOverride?: WebpackOverrideFn;
|
|
13
|
+
enableCaching?: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @description Deploys a Remotion project to an S3 bucket to prepare it for rendering on AWS Lambda.
|
|
18
|
+
* @link https://remotion.dev/docs/lambda/deployproject
|
|
19
|
+
* @param {AwsRegion} params.region The region in which the S3 bucket resides in.
|
|
20
|
+
* @param {string} params.entryPoint An absolute path to the entry file of your Remotion project.
|
|
21
|
+
* @param {string} params.bucketName The name of the bucket to deploy your project into.
|
|
22
|
+
* @param {object} params.options Further options, see documentation page for this function.
|
|
23
|
+
*/
|
|
24
|
+
export declare const deployProject: ({ bucketName, entryPoint, options, region, }: DeployProjectInput) => Promise<{
|
|
25
|
+
url: string;
|
|
26
|
+
}>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=deploy-project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy-project.d.ts","sourceRoot":"","sources":["../../src/api/deploy-project.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,iBAAiB,EAAC,MAAM,UAAU,CAAC;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAKjD,OAAO,EAAY,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAE1D,aAAK,kBAAkB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE;QACT,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;QAC9C,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;QAChC,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;QACvD,eAAe,CAAC,EAAE,iBAAiB,CAAC;QACpC,aAAa,CAAC,EAAE,OAAO,CAAC;KACxB,CAAC;CACF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,iDAKvB,kBAAkB;;EAgDpB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deployProject = void 0;
|
|
4
|
+
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
5
|
+
const bundler_1 = require("@remotion/bundler");
|
|
6
|
+
const remotion_1 = require("remotion");
|
|
7
|
+
const aws_clients_1 = require("../shared/aws-clients");
|
|
8
|
+
const constants_1 = require("../shared/constants");
|
|
9
|
+
const make_s3_url_1 = require("../shared/make-s3-url");
|
|
10
|
+
const random_hash_1 = require("../shared/random-hash");
|
|
11
|
+
const upload_dir_1 = require("./upload-dir");
|
|
12
|
+
/**
|
|
13
|
+
* @description Deploys a Remotion project to an S3 bucket to prepare it for rendering on AWS Lambda.
|
|
14
|
+
* @link https://remotion.dev/docs/lambda/deployproject
|
|
15
|
+
* @param {AwsRegion} params.region The region in which the S3 bucket resides in.
|
|
16
|
+
* @param {string} params.entryPoint An absolute path to the entry file of your Remotion project.
|
|
17
|
+
* @param {string} params.bucketName The name of the bucket to deploy your project into.
|
|
18
|
+
* @param {object} params.options Further options, see documentation page for this function.
|
|
19
|
+
*/
|
|
20
|
+
const deployProject = async ({ bucketName, entryPoint, options, region, }) => {
|
|
21
|
+
var _a, _b, _c, _d;
|
|
22
|
+
if (!bucketName.startsWith(constants_1.REMOTION_BUCKET_PREFIX)) {
|
|
23
|
+
throw new Error(`The bucketName parameter must start with ${constants_1.REMOTION_BUCKET_PREFIX}.`);
|
|
24
|
+
}
|
|
25
|
+
const subFolder = constants_1.getSitesKey(random_hash_1.randomHash());
|
|
26
|
+
const bundled = await bundler_1.bundle(entryPoint, (_a = options === null || options === void 0 ? void 0 : options.onBundleProgress) !== null && _a !== void 0 ? _a : (() => undefined), {
|
|
27
|
+
publicPath: `/${subFolder}/`,
|
|
28
|
+
webpackOverride: (_b = options === null || options === void 0 ? void 0 : options.webpackOverride) !== null && _b !== void 0 ? _b : remotion_1.Internals.getWebpackOverrideFn(),
|
|
29
|
+
enableCaching: (_c = options === null || options === void 0 ? void 0 : options.enableCaching) !== null && _c !== void 0 ? _c : remotion_1.Internals.getWebpackCaching(),
|
|
30
|
+
});
|
|
31
|
+
await Promise.all([
|
|
32
|
+
upload_dir_1.uploadDir({
|
|
33
|
+
bucket: bucketName,
|
|
34
|
+
client: aws_clients_1.getS3Client(region),
|
|
35
|
+
dir: bundled,
|
|
36
|
+
onProgress: (_d = options === null || options === void 0 ? void 0 : options.onUploadProgress) !== null && _d !== void 0 ? _d : (() => undefined),
|
|
37
|
+
folder: subFolder,
|
|
38
|
+
}),
|
|
39
|
+
aws_clients_1.getS3Client(region)
|
|
40
|
+
.send(new client_s3_1.PutBucketWebsiteCommand({
|
|
41
|
+
Bucket: bucketName,
|
|
42
|
+
WebsiteConfiguration: {
|
|
43
|
+
IndexDocument: {
|
|
44
|
+
// TODO: but it doesn't exist
|
|
45
|
+
// TODO: shouldn't we do this before
|
|
46
|
+
Suffix: `index.html`,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
}))
|
|
50
|
+
// TODO if we decide to keep it, add callback to docs
|
|
51
|
+
.then(() => { var _a; return (_a = options === null || options === void 0 ? void 0 : options.onWebsiteActivated) === null || _a === void 0 ? void 0 : _a.call(options); }),
|
|
52
|
+
]);
|
|
53
|
+
return {
|
|
54
|
+
url: make_s3_url_1.makeS3Url({ bucketName, subFolder, region }),
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
exports.deployProject = deployProject;
|
|
58
|
+
//# sourceMappingURL=deploy-project.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy-project.js","sourceRoot":"","sources":["../../src/api/deploy-project.ts"],"names":[],"mappings":";;;AAAA,kDAA2D;AAC3D,+CAAyC;AACzC,uCAAsD;AAEtD,uDAAkD;AAClD,mDAAwE;AACxE,uDAAgD;AAChD,uDAAiD;AACjD,6CAA0D;AAe1D;;;;;;;GAOG;AACI,MAAM,aAAa,GAAG,KAAK,EAAE,EACnC,UAAU,EACV,UAAU,EACV,OAAO,EACP,MAAM,GACc,EAAE,EAAE;;IACxB,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,kCAAsB,CAAC,EAAE;QACnD,MAAM,IAAI,KAAK,CACd,4CAA4C,kCAAsB,GAAG,CACrE,CAAC;KACF;IAED,MAAM,SAAS,GAAG,uBAAW,CAAC,wBAAU,EAAE,CAAC,CAAC;IAC5C,MAAM,OAAO,GAAG,MAAM,gBAAM,CAC3B,UAAU,EACV,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,EAC9C;QACC,UAAU,EAAE,IAAI,SAAS,GAAG;QAC5B,eAAe,EACd,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,mCAAI,oBAAS,CAAC,oBAAoB,EAAE;QAC7D,aAAa,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,oBAAS,CAAC,iBAAiB,EAAE;KACtE,CACD,CAAC;IAEF,MAAM,OAAO,CAAC,GAAG,CAAC;QACjB,sBAAS,CAAC;YACT,MAAM,EAAE,UAAU;YAClB,MAAM,EAAE,yBAAW,CAAC,MAAM,CAAC;YAC3B,GAAG,EAAE,OAAO;YACZ,UAAU,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;YAC1D,MAAM,EAAE,SAAS;SACjB,CAAC;QACF,yBAAW,CAAC,MAAM,CAAC;aACjB,IAAI,CACJ,IAAI,mCAAuB,CAAC;YAC3B,MAAM,EAAE,UAAU;YAElB,oBAAoB,EAAE;gBACrB,aAAa,EAAE;oBACd,6BAA6B;oBAC7B,oCAAoC;oBACpC,MAAM,EAAE,YAAY;iBACpB;aACD;SACD,CAAC,CACF;YACD,qDAAqD;aACpD,IAAI,CAAC,GAAG,EAAE,WAAC,OAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,+CAA3B,OAAO,CAAwB,CAAA,EAAA,CAAC;KAC7C,CAAC,CAAC;IAEH,OAAO;QACN,GAAG,EAAE,uBAAS,CAAC,EAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAC,CAAC;KAC/C,CAAC;AACH,CAAC,CAAC;AArDW,QAAA,aAAa,iBAqDxB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { LambdaReadFileProgress } from '../functions/helpers/read-with-progress';
|
|
1
2
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
3
|
declare type DownloadVideoInput = {
|
|
3
4
|
region: AwsRegion;
|
|
4
5
|
bucketName: string;
|
|
5
6
|
renderId: string;
|
|
6
7
|
outPath: string;
|
|
8
|
+
onProgress?: LambdaReadFileProgress;
|
|
7
9
|
};
|
|
8
10
|
declare type DownloadVideoOutput = {
|
|
9
11
|
outputPath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-video.d.ts","sourceRoot":"","sources":["../../src/api/download-video.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD,aAAK,kBAAkB,GAAG;IACzB,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"download-video.d.ts","sourceRoot":"","sources":["../../src/api/download-video.ts"],"names":[],"mappings":"AAKA,OAAO,EACN,sBAAsB,EAEtB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD,aAAK,kBAAkB,GAAG;IACzB,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACpC,CAAC;AAEF,aAAK,mBAAmB,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,UAClB,kBAAkB,KACvB,QAAQ,mBAAmB,CAuC7B,CAAC"}
|
|
@@ -1,35 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
4
|
};
|
|
24
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
6
|
exports.downloadVideo = void 0;
|
|
26
|
-
const
|
|
7
|
+
const renderer_1 = require("@remotion/renderer");
|
|
8
|
+
const fs_1 = require("fs");
|
|
27
9
|
const path_1 = __importDefault(require("path"));
|
|
28
10
|
const expected_out_name_1 = require("../functions/helpers/expected-out-name");
|
|
29
11
|
const get_render_metadata_1 = require("../functions/helpers/get-render-metadata");
|
|
30
|
-
const
|
|
12
|
+
const read_with_progress_1 = require("../functions/helpers/read-with-progress");
|
|
31
13
|
const get_account_id_1 = require("../shared/get-account-id");
|
|
32
14
|
const downloadVideo = async (input) => {
|
|
15
|
+
var _a;
|
|
33
16
|
const expectedBucketOwner = await (0, get_account_id_1.getAccountId)({
|
|
34
17
|
region: input.region,
|
|
35
18
|
});
|
|
@@ -39,23 +22,29 @@ const downloadVideo = async (input) => {
|
|
|
39
22
|
region: input.region,
|
|
40
23
|
renderId: input.renderId,
|
|
41
24
|
});
|
|
42
|
-
const readable = await (0,
|
|
25
|
+
const readable = await (0, read_with_progress_1.lambdaReadFileWithProgress)({
|
|
43
26
|
bucketName: input.bucketName,
|
|
44
27
|
expectedBucketOwner,
|
|
45
28
|
key: (0, expected_out_name_1.getExpectedOutName)(renderMetadata),
|
|
46
29
|
region: input.region,
|
|
30
|
+
onProgress: (_a = input.onProgress) !== null && _a !== void 0 ? _a : (() => undefined),
|
|
47
31
|
});
|
|
48
32
|
const outputPath = path_1.default.resolve(process.cwd(), input.outPath);
|
|
33
|
+
renderer_1.RenderInternals.ensureOutputDirectory(outputPath);
|
|
34
|
+
const writeStream = (0, fs_1.createWriteStream)(outputPath);
|
|
35
|
+
let sizeInBytes = 0;
|
|
49
36
|
await new Promise((resolve, reject) => {
|
|
50
37
|
readable
|
|
51
|
-
.
|
|
38
|
+
.on('data', (d) => {
|
|
39
|
+
sizeInBytes += d.length;
|
|
40
|
+
})
|
|
41
|
+
.pipe(writeStream)
|
|
52
42
|
.on('error', (err) => reject(err))
|
|
53
43
|
.on('close', () => resolve());
|
|
54
44
|
});
|
|
55
|
-
const { size } = await fs_1.default.promises.stat(outputPath);
|
|
56
45
|
return {
|
|
57
46
|
outputPath,
|
|
58
|
-
sizeInBytes
|
|
47
|
+
sizeInBytes,
|
|
59
48
|
};
|
|
60
49
|
};
|
|
61
50
|
exports.downloadVideo = downloadVideo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-video.js","sourceRoot":"","sources":["../../src/api/download-video.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"download-video.js","sourceRoot":"","sources":["../../src/api/download-video.ts"],"names":[],"mappings":";;;;;;AAAA,iDAAmD;AACnD,2BAAqC;AACrC,gDAAwB;AACxB,8EAA0E;AAC1E,kFAA2E;AAC3E,gFAGiD;AAEjD,6DAAsD;AAe/C,MAAM,aAAa,GAAG,KAAK,EACjC,KAAyB,EACM,EAAE;;IACjC,MAAM,mBAAmB,GAAG,MAAM,IAAA,6BAAY,EAAC;QAC9C,MAAM,EAAE,KAAK,CAAC,MAAM;KACpB,CAAC,CAAC;IACH,MAAM,cAAc,GAAG,MAAM,IAAA,uCAAiB,EAAC;QAC9C,UAAU,EAAE,KAAK,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.ts","sourceRoot":"","sources":["../../src/api/enable-s3-website.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"enable-s3-website.d.ts","sourceRoot":"","sources":["../../src/api/enable-s3-website.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,eAAe;YAInB,SAAS;gBACL,MAAM;mBAalB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
|
+
/**
|
|
3
|
+
* @description Ensures that a Lambda layer with the necessary binaries exists.
|
|
4
|
+
* @link https://remotion.dev/docs/lambda/ensurelambdabinaries
|
|
5
|
+
* @param {AwsRegion} region The region in which you want ensure the binaries are deployed.
|
|
6
|
+
* @returns `Promise<{layerArn: string}>`
|
|
7
|
+
*/
|
|
8
|
+
export declare const ensureLambdaBinaries: (region: AwsRegion) => Promise<{
|
|
9
|
+
layerArn: string;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=ensure-lambda-binaries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-lambda-binaries.d.ts","sourceRoot":"","sources":["../../src/api/ensure-lambda-binaries.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAwEjD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,WAAkB,SAAS;;EAK3D,CAAC"}
|