@remotion/lambda 3.0.0-lambda.85 → 3.0.0-wrapped.209
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/bundle-lambda.js +2 -1
- package/dist/admin/bundle-lambda.js.map +1 -1
- package/dist/admin/make-layer-public.js +3 -13
- package/dist/admin/make-layer-public.js.map +1 -1
- package/dist/api/bucket-exists.d.ts +1 -1
- package/dist/api/bucket-exists.d.ts.map +1 -1
- 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 +7 -13
- package/dist/api/create-function.js.map +1 -1
- package/dist/api/delete-function.d.ts +1 -1
- package/dist/api/delete-function.js +1 -1
- package/dist/api/delete-site.d.ts +19 -9
- package/dist/api/delete-site.d.ts.map +1 -1
- package/dist/api/delete-site.js +10 -1
- package/dist/api/delete-site.js.map +1 -1
- package/dist/api/deploy-function.d.ts +1 -1
- package/dist/api/deploy-function.d.ts.map +1 -1
- package/dist/api/deploy-function.js +11 -1
- package/dist/api/deploy-function.js.map +1 -1
- package/dist/api/deploy-site.d.ts +1 -1
- package/dist/api/deploy-site.js +1 -1
- 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/get-function-info.d.ts +1 -1
- package/dist/api/get-function-info.js +1 -1
- package/dist/api/get-functions.d.ts +1 -1
- package/dist/api/get-functions.js +1 -1
- package/dist/api/get-render-progress.d.ts +1 -1
- package/dist/api/get-render-progress.js +1 -1
- package/dist/api/iam-validation/role-permissions.d.ts.map +1 -1
- package/dist/api/iam-validation/role-permissions.js +6 -5
- package/dist/api/iam-validation/role-permissions.js.map +1 -1
- package/dist/api/iam-validation/simulate-rule.d.ts +1 -0
- package/dist/api/iam-validation/simulate-rule.d.ts.map +1 -1
- package/dist/api/iam-validation/simulate-rule.js +42 -29
- package/dist/api/iam-validation/simulate-rule.js.map +1 -1
- package/dist/api/iam-validation/simulate.d.ts +1 -1
- package/dist/api/iam-validation/simulate.d.ts.map +1 -1
- package/dist/api/iam-validation/simulate.js +4 -4
- package/dist/api/iam-validation/simulate.js.map +1 -1
- package/dist/api/iam-validation/suggested-policy.d.ts +3 -2
- package/dist/api/iam-validation/suggested-policy.d.ts.map +1 -1
- package/dist/api/iam-validation/suggested-policy.js +7 -6
- package/dist/api/iam-validation/suggested-policy.js.map +1 -1
- package/dist/api/iam-validation/user-permissions.d.ts +7 -0
- package/dist/api/iam-validation/user-permissions.d.ts.map +1 -0
- package/dist/api/iam-validation/user-permissions.js +75 -0
- package/dist/api/iam-validation/user-permissions.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/render-still-on-lambda.d.ts +4 -4
- package/dist/api/render-still-on-lambda.d.ts.map +1 -1
- package/dist/api/render-still-on-lambda.js +7 -5
- package/dist/api/render-still-on-lambda.js.map +1 -1
- package/dist/api/render-video-on-lambda.d.ts +6 -5
- package/dist/api/render-video-on-lambda.d.ts.map +1 -1
- package/dist/api/render-video-on-lambda.js +9 -5
- package/dist/api/render-video-on-lambda.js.map +1 -1
- package/dist/api/upload-dir.d.ts +1 -1
- package/dist/api/upload-dir.d.ts.map +1 -1
- package/dist/cli/args.d.ts +4 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +2 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/functions/deploy.d.ts.map +1 -1
- package/dist/cli/commands/functions/deploy.js +0 -1
- package/dist/cli/commands/functions/deploy.js.map +1 -1
- package/dist/cli/commands/functions/index.d.ts.map +1 -1
- package/dist/cli/commands/functions/index.js +2 -1
- package/dist/cli/commands/functions/index.js.map +1 -1
- package/dist/cli/commands/functions/ls.d.ts.map +1 -1
- package/dist/cli/commands/functions/ls.js +6 -2
- package/dist/cli/commands/functions/ls.js.map +1 -1
- package/dist/cli/commands/functions/rm.d.ts.map +1 -1
- package/dist/cli/commands/functions/rm.js +7 -2
- package/dist/cli/commands/functions/rm.js.map +1 -1
- package/dist/cli/commands/policies/policies.d.ts.map +1 -1
- package/dist/cli/commands/policies/policies.js +2 -1
- package/dist/cli/commands/policies/policies.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 +11 -12
- 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 +44 -21
- package/dist/cli/commands/render/render.js.map +1 -1
- package/dist/cli/commands/sites/create.d.ts.map +1 -1
- package/dist/cli/commands/sites/create.js +4 -3
- package/dist/cli/commands/sites/create.js.map +1 -1
- package/dist/cli/commands/sites/index.d.ts.map +1 -1
- package/dist/cli/commands/sites/index.js +2 -1
- package/dist/cli/commands/sites/index.js.map +1 -1
- package/dist/cli/commands/sites/ls.js +3 -3
- package/dist/cli/commands/sites/ls.js.map +1 -1
- package/dist/cli/commands/sites/rm.d.ts +1 -1
- package/dist/cli/commands/sites/rm.d.ts.map +1 -1
- package/dist/cli/commands/sites/rm.js +5 -4
- package/dist/cli/commands/sites/rm.js.map +1 -1
- package/dist/cli/commands/still.d.ts.map +1 -1
- package/dist/cli/commands/still.js +13 -7
- package/dist/cli/commands/still.js.map +1 -1
- package/dist/cli/get-aws-region.d.ts.map +1 -1
- package/dist/cli/get-aws-region.js +2 -2
- package/dist/cli/get-aws-region.js.map +1 -1
- package/dist/cli/helpers/confirm.d.ts.map +1 -1
- package/dist/cli/helpers/confirm.js +2 -1
- package/dist/cli/helpers/confirm.js.map +1 -1
- package/dist/cli/helpers/find-function-name.d.ts.map +1 -1
- package/dist/cli/helpers/find-function-name.js +3 -2
- package/dist/cli/helpers/find-function-name.js.map +1 -1
- package/dist/cli/helpers/quit.d.ts +2 -0
- package/dist/cli/helpers/quit.d.ts.map +1 -0
- package/dist/cli/helpers/quit.js +8 -0
- package/dist/cli/helpers/quit.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +20 -9
- package/dist/cli/index.js.map +1 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -1
- package/dist/client.js.map +1 -1
- package/dist/functions/chunk-optimization/can-use-optimization.d.ts +2 -2
- package/dist/functions/chunk-optimization/can-use-optimization.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/can-use-optimization.js +6 -3
- package/dist/functions/chunk-optimization/can-use-optimization.js.map +1 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +2 -2
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts.map +1 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.js +10 -5
- package/dist/functions/chunk-optimization/plan-frame-ranges.js.map +1 -1
- package/dist/functions/chunk-optimization/types.d.ts +2 -2
- package/dist/functions/chunk-optimization/types.d.ts.map +1 -1
- package/dist/functions/helpers/calculate-chunk-times.d.ts.map +1 -1
- package/dist/functions/helpers/calculate-chunk-times.js +8 -7
- package/dist/functions/helpers/calculate-chunk-times.js.map +1 -1
- package/dist/functions/helpers/calculate-price-from-bucket.d.ts +1 -2
- package/dist/functions/helpers/calculate-price-from-bucket.d.ts.map +1 -1
- package/dist/functions/helpers/calculate-price-from-bucket.js +5 -5
- package/dist/functions/helpers/calculate-price-from-bucket.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.d.ts.map +1 -1
- package/dist/functions/helpers/create-post-render-data.js +9 -3
- 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 +6 -1
- package/dist/functions/helpers/get-browser-instance.js.map +1 -1
- package/dist/functions/helpers/get-cleanup-progress.d.ts.map +1 -1
- package/dist/functions/helpers/get-cleanup-progress.js +2 -2
- package/dist/functions/helpers/get-cleanup-progress.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/get-progress.d.ts.map +1 -1
- package/dist/functions/helpers/get-progress.js +2 -3
- package/dist/functions/helpers/get-progress.js.map +1 -1
- package/dist/functions/helpers/get-time-to-finish.js +1 -1
- package/dist/functions/helpers/get-time-to-finish.js.map +1 -1
- package/dist/functions/helpers/inspect-errors.d.ts.map +1 -1
- package/dist/functions/helpers/inspect-errors.js +3 -0
- package/dist/functions/helpers/inspect-errors.js.map +1 -1
- package/dist/functions/helpers/is-enosp-err.d.ts +1 -0
- package/dist/functions/helpers/is-enosp-err.d.ts.map +1 -1
- package/dist/functions/helpers/is-enosp-err.js +5 -1
- package/dist/functions/helpers/is-enosp-err.js.map +1 -1
- package/dist/functions/helpers/min-max.d.ts +3 -0
- package/dist/functions/helpers/min-max.d.ts.map +1 -0
- package/dist/functions/helpers/min-max.js +34 -0
- package/dist/functions/helpers/min-max.js.map +1 -0
- 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/index.d.ts.map +1 -1
- package/dist/functions/index.js +10 -3
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/launch.d.ts.map +1 -1
- package/dist/functions/launch.js +17 -12
- package/dist/functions/launch.js.map +1 -1
- package/dist/functions/renderer.d.ts.map +1 -1
- package/dist/functions/renderer.js +19 -64
- package/dist/functions/renderer.js.map +1 -1
- package/dist/functions/start.d.ts.map +1 -1
- package/dist/functions/start.js +4 -5
- package/dist/functions/start.js.map +1 -1
- package/dist/functions/still.d.ts.map +1 -1
- package/dist/functions/still.js +2 -3
- package/dist/functions/still.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.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/calculate-price.d.ts +1 -1
- package/dist/pricing/calculate-price.js +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/shared/aws-clients.d.ts.map +1 -1
- package/dist/shared/aws-clients.js +14 -4
- package/dist/shared/aws-clients.js.map +1 -1
- package/dist/shared/check-credentials.d.ts.map +1 -1
- package/dist/shared/check-credentials.js +6 -3
- package/dist/shared/check-credentials.js.map +1 -1
- package/dist/shared/constants.d.ts +13 -11
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +6 -7
- package/dist/shared/constants.js.map +1 -1
- package/dist/shared/convert-to-serve-url.d.ts +3 -0
- package/dist/shared/convert-to-serve-url.d.ts.map +1 -0
- package/dist/shared/convert-to-serve-url.js +19 -0
- package/dist/shared/convert-to-serve-url.js.map +1 -0
- package/dist/shared/docs-url.d.ts +2 -0
- package/dist/shared/docs-url.d.ts.map +1 -0
- package/dist/shared/docs-url.js +5 -0
- package/dist/shared/docs-url.js.map +1 -0
- 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 +2 -1
- package/dist/shared/hosted-layers.d.ts.map +1 -1
- package/dist/shared/hosted-layers.js +32 -185
- package/dist/shared/hosted-layers.js.map +1 -1
- package/dist/shared/is-in-lambda.d.ts +2 -0
- package/dist/shared/is-in-lambda.d.ts.map +1 -0
- package/dist/shared/is-in-lambda.js +5 -0
- package/dist/shared/is-in-lambda.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/dist/shared/validate-retries.d.ts +2 -0
- package/dist/shared/validate-retries.d.ts.map +1 -0
- package/dist/shared/validate-retries.js +22 -0
- package/dist/shared/validate-retries.js.map +1 -0
- package/package.json +12 -11
- package/remotionlambda.zip +0 -0
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,6 +8,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
8
8
|
const function_zip_path_1 = require("../shared/function-zip-path");
|
|
9
9
|
const esbuild = require("esbuild");
|
|
10
10
|
const zl = require("zip-lib");
|
|
11
|
+
const quit_1 = require("../cli/helpers/quit");
|
|
11
12
|
const bundleLambda = async () => {
|
|
12
13
|
var _a;
|
|
13
14
|
const outdir = path_1.default.join(__dirname, '..', `build-render`);
|
|
@@ -34,6 +35,6 @@ bundleLambda()
|
|
|
34
35
|
})
|
|
35
36
|
.catch((err) => {
|
|
36
37
|
console.log(err);
|
|
37
|
-
|
|
38
|
+
(0, quit_1.quit)(1);
|
|
38
39
|
});
|
|
39
40
|
//# sourceMappingURL=bundle-lambda.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-lambda.js","sourceRoot":"","sources":["../../src/admin/bundle-lambda.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,mEAAyD;AACzD,mCAAoC;AACpC,8BAA+B;
|
|
1
|
+
{"version":3,"file":"bundle-lambda.js","sourceRoot":"","sources":["../../src/admin/bundle-lambda.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,mEAAyD;AACzD,mCAAoC;AACpC,8BAA+B;AAC/B,8CAAyC;AAEzC,MAAM,YAAY,GAAG,KAAK,IAAI,EAAE;;IAC/B,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,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,gCAAY,CAAC,CAAC;IAC7C,YAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF,YAAY,EAAE;KACZ,IAAI,CAAC,GAAG,EAAE;IACV,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AAC/B,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"}
|
|
@@ -2,31 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const client_lambda_1 = require("@aws-sdk/client-lambda");
|
|
4
4
|
const aws_policies_1 = require("aws-policies");
|
|
5
|
+
const quit_1 = require("../cli/helpers/quit");
|
|
5
6
|
const regions_1 = require("../regions");
|
|
6
7
|
const aws_clients_1 = require("../shared/aws-clients");
|
|
7
8
|
const constants_1 = require("../shared/constants");
|
|
8
9
|
const runtimes = ['nodejs14.x'];
|
|
9
10
|
const layerInfo = {
|
|
10
|
-
'af-south-1': [],
|
|
11
|
-
'ap-east-1': [],
|
|
12
11
|
'ap-northeast-1': [],
|
|
13
|
-
'ap-northeast-2': [],
|
|
14
|
-
'ap-northeast-3': [],
|
|
15
12
|
'ap-south-1': [],
|
|
16
13
|
'ap-southeast-1': [],
|
|
17
14
|
'ap-southeast-2': [],
|
|
18
|
-
'ca-central-1': [],
|
|
19
15
|
'eu-central-1': [],
|
|
20
|
-
'eu-north-1': [],
|
|
21
|
-
'eu-south-1': [],
|
|
22
16
|
'eu-west-1': [],
|
|
23
17
|
'eu-west-2': [],
|
|
24
|
-
'eu-west-3': [],
|
|
25
|
-
'me-south-1': [],
|
|
26
|
-
'sa-east-1': [],
|
|
27
18
|
'us-east-1': [],
|
|
28
19
|
'us-east-2': [],
|
|
29
|
-
'us-west-1': [],
|
|
30
20
|
'us-west-2': [],
|
|
31
21
|
};
|
|
32
22
|
const makeLayerPublic = async () => {
|
|
@@ -37,7 +27,7 @@ const makeLayerPublic = async () => {
|
|
|
37
27
|
const { Version, LayerArn } = await (0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.PublishLayerVersionCommand({
|
|
38
28
|
Content: {
|
|
39
29
|
S3Bucket: 'remotionlambda-binaries-' + region,
|
|
40
|
-
S3Key: `remotion-layer-${layer}-
|
|
30
|
+
S3Key: `remotion-layer-${layer}-v3.zip`,
|
|
41
31
|
},
|
|
42
32
|
LayerName: layerName,
|
|
43
33
|
LicenseInfo: layer === 'chromium'
|
|
@@ -79,6 +69,6 @@ makeLayerPublic()
|
|
|
79
69
|
})
|
|
80
70
|
.catch((err) => {
|
|
81
71
|
console.log(err);
|
|
82
|
-
|
|
72
|
+
(0, quit_1.quit)(1);
|
|
83
73
|
});
|
|
84
74
|
//# sourceMappingURL=make-layer-public.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-layer-public.js","sourceRoot":"","sources":["../../src/admin/make-layer-public.ts"],"names":[],"mappings":";;AAAA,0DAGgC;AAChC,+CAAoC;
|
|
1
|
+
{"version":3,"file":"make-layer-public.js","sourceRoot":"","sources":["../../src/admin/make-layer-public.ts"],"names":[],"mappings":";;AAAA,0DAGgC;AAChC,+CAAoC;AACpC,8CAAyC;AAEzC,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,gBAAgB,EAAE,EAAE;IACpB,gBAAgB,EAAE,EAAE;IACpB,cAAc,EAAE,EAAE;IAClB,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,EAAE;CACf,CAAC;AAEF,MAAM,eAAe,GAAG,KAAK,IAAI,EAAE;IAClC,MAAM,MAAM,GAAG,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAC;IAC3D,KAAK,MAAM,MAAM,IAAI,qBAAW,EAAE;QACjC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;YAC3B,MAAM,SAAS,GAAG,qBAAqB,KAAK,EAAE,CAAC;YAC/C,MAAM,EAAC,OAAO,EAAE,QAAQ,EAAC,GAAG,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC,IAAI,CAC7D,IAAI,0CAA0B,CAAC;gBAC9B,OAAO,EAAE;oBACR,QAAQ,EAAE,0BAA0B,GAAG,MAAM;oBAC7C,KAAK,EAAE,kBAAkB,KAAK,SAAS;iBACvC;gBACD,SAAS,EAAE,SAAS;gBACpB,WAAW,EACV,KAAK,KAAK,UAAU;oBACnB,CAAC,CAAC,gIAAgI;oBAClI,CAAC,CAAC,KAAK,KAAK,QAAQ;wBACpB,CAAC,CAAC,iFAAiF;wBACnF,CAAC,CAAC,4HAA4H;gBAChI,kBAAkB,EAAE,QAAQ;gBAC5B,WAAW,EAAE,2BAAe;aAC5B,CAAC,CACF,CAAC;YACF,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC,IAAI,CACjC,IAAI,gDAAgC,CAAC;gBACpC,MAAM,EAAE,qBAAM,CAAC,eAAe;gBAC9B,SAAS,EAAE,SAAS;gBACpB,SAAS,EAAE,GAAG;gBACd,aAAa,EAAE,OAAO;gBACtB,WAAW,EAAE,cAAc;aAC3B,CAAC,CACF,CAAC;YACF,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -4,10 +4,10 @@ exports.createFunction = void 0;
|
|
|
4
4
|
const client_cloudwatch_logs_1 = require("@aws-sdk/client-cloudwatch-logs");
|
|
5
5
|
const client_lambda_1 = require("@aws-sdk/client-lambda");
|
|
6
6
|
const fs_1 = require("fs");
|
|
7
|
-
const log_1 = require("../cli/log");
|
|
8
7
|
const defaults_1 = require("../defaults");
|
|
9
8
|
const aws_clients_1 = require("../shared/aws-clients");
|
|
10
9
|
const hosted_layers_1 = require("../shared/hosted-layers");
|
|
10
|
+
const suggested_policy_1 = require("./iam-validation/suggested-policy");
|
|
11
11
|
const createFunction = async ({ createCloudWatchLogGroup, region, zipFile, functionName, accountId, memorySizeInMb, timeoutInSeconds, }) => {
|
|
12
12
|
if (createCloudWatchLogGroup) {
|
|
13
13
|
await (0, aws_clients_1.getCloudWatchLogsClient)(region).send(new client_cloudwatch_logs_1.CreateLogGroupCommand({
|
|
@@ -24,24 +24,18 @@ const createFunction = async ({ createCloudWatchLogGroup, region, zipFile, funct
|
|
|
24
24
|
},
|
|
25
25
|
FunctionName: functionName,
|
|
26
26
|
Handler: 'index.handler',
|
|
27
|
-
|
|
28
|
-
Role: `arn:aws:iam::${accountId}:role/remotion-lambda-role`,
|
|
27
|
+
Role: `arn:aws:iam::${accountId}:role/${suggested_policy_1.ROLE_NAME}`,
|
|
29
28
|
Runtime: 'nodejs14.x',
|
|
30
29
|
Description: 'Renders a Remotion video.',
|
|
31
30
|
MemorySize: memorySizeInMb,
|
|
32
31
|
Timeout: timeoutInSeconds,
|
|
33
32
|
Layers: hosted_layers_1.hostedLayers[region].map(({ layerArn, version }) => `${layerArn}:${version}`),
|
|
33
|
+
Architectures: ['arm64'],
|
|
34
|
+
}));
|
|
35
|
+
await (0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.PutFunctionEventInvokeConfigCommand({
|
|
36
|
+
MaximumRetryAttempts: 0,
|
|
37
|
+
FunctionName,
|
|
34
38
|
}));
|
|
35
|
-
// TODO: Remove try catch in future versions
|
|
36
|
-
try {
|
|
37
|
-
await (0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.PutFunctionEventInvokeConfigCommand({
|
|
38
|
-
MaximumRetryAttempts: 0,
|
|
39
|
-
FunctionName,
|
|
40
|
-
}));
|
|
41
|
-
}
|
|
42
|
-
catch (err) {
|
|
43
|
-
log_1.Log.warn('\nWe now require the lambda:PutFunctionEventInvokeConfig permissions for your user. Please run `npx remotion lambda policies user` update your user policy. This will be required for the final version of Remotion Lambda.');
|
|
44
|
-
}
|
|
45
39
|
return { FunctionName };
|
|
46
40
|
};
|
|
47
41
|
exports.createFunction = createFunction;
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
2
|
/**
|
|
3
3
|
* @description Deletes a function from AWS Lambda.
|
|
4
|
-
* @link https://remotion.
|
|
4
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/deletefunction
|
|
5
5
|
* @param options.region The region the function was deployed to.
|
|
6
6
|
* @param options.functionName The name of the function.
|
|
7
7
|
* @returns Nothing. Throws if the function failed to delete.
|
|
@@ -5,7 +5,7 @@ const client_lambda_1 = require("@aws-sdk/client-lambda");
|
|
|
5
5
|
const aws_clients_1 = require("../shared/aws-clients");
|
|
6
6
|
/**
|
|
7
7
|
* @description Deletes a function from AWS Lambda.
|
|
8
|
-
* @link https://remotion.
|
|
8
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/deletefunction
|
|
9
9
|
* @param options.region The region the function was deployed to.
|
|
10
10
|
* @param options.functionName The name of the function.
|
|
11
11
|
* @returns Nothing. Throws if the function failed to delete.
|
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import { AwsRegion } from '
|
|
2
|
-
declare type
|
|
3
|
-
totalSizeInBytes: number;
|
|
4
|
-
};
|
|
5
|
-
export declare const deleteSite: ({ bucketName, siteName, region, onAfterItemDeleted, }: {
|
|
1
|
+
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
|
+
export declare type DeleteSiteInputData = {
|
|
6
3
|
bucketName: string;
|
|
7
4
|
siteName: string;
|
|
8
5
|
region: AwsRegion;
|
|
9
|
-
onAfterItemDeleted?: (
|
|
6
|
+
onAfterItemDeleted?: (data: {
|
|
10
7
|
bucketName: string;
|
|
11
8
|
itemName: string;
|
|
12
|
-
}) => void
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
9
|
+
}) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare type DeleteSiteReturnData = {
|
|
12
|
+
totalSizeInBytes: number;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @description Deletes a deployed site from your S3 bucket. The opposite of deploySite().
|
|
17
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/deletesite
|
|
18
|
+
* @param options.bucketName The S3 bucket name where the site resides in.
|
|
19
|
+
* @param options.siteName The ID of the site that you want to delete.
|
|
20
|
+
* @param {AwsRegion} options.region The region in where the S3 bucket resides in.
|
|
21
|
+
* @param options.onAfterItemDeleted Function that gets called after each file that gets deleted, useful for showing progress.
|
|
22
|
+
* @returns `Promise<{totalSizeInBytes: number}>` How much space was freed.
|
|
23
|
+
*/
|
|
24
|
+
export declare const deleteSite: ({ bucketName, siteName, region, onAfterItemDeleted, }: DeleteSiteInputData) => Promise<DeleteSiteReturnData>;
|
|
15
25
|
//# sourceMappingURL=delete-site.d.ts.map
|
|
@@ -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"}
|
package/dist/api/delete-site.js
CHANGED
|
@@ -5,7 +5,16 @@ const defaults_1 = require("../defaults");
|
|
|
5
5
|
const io_1 = require("../functions/helpers/io");
|
|
6
6
|
const get_account_id_1 = require("../shared/get-account-id");
|
|
7
7
|
const clean_items_1 = require("./clean-items");
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @description Deletes a deployed site from your S3 bucket. The opposite of deploySite().
|
|
11
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/deletesite
|
|
12
|
+
* @param options.bucketName The S3 bucket name where the site resides in.
|
|
13
|
+
* @param options.siteName The ID of the site that you want to delete.
|
|
14
|
+
* @param {AwsRegion} options.region The region in where the S3 bucket resides in.
|
|
15
|
+
* @param options.onAfterItemDeleted Function that gets called after each file that gets deleted, useful for showing progress.
|
|
16
|
+
* @returns `Promise<{totalSizeInBytes: number}>` How much space was freed.
|
|
17
|
+
*/
|
|
9
18
|
const deleteSite = async ({ bucketName, siteName, region, onAfterItemDeleted, }) => {
|
|
10
19
|
const accountId = await (0, get_account_id_1.getAccountId)({ region });
|
|
11
20
|
let files = await (0, io_1.lambdaLs)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-site.js","sourceRoot":"","sources":["../../src/api/delete-site.ts"],"names":[],"mappings":";;;AACA,0CAAwC;AACxC,gDAAiD;AACjD,6DAAsD;AACtD,+CAAyC;
|
|
1
|
+
{"version":3,"file":"delete-site.js","sourceRoot":"","sources":["../../src/api/delete-site.ts"],"names":[],"mappings":";;;AACA,0CAAwC;AACxC,gDAAiD;AACjD,6DAAsD;AACtD,+CAAyC;AAczC;;;;;;;;;GASG;AACI,MAAM,UAAU,GAAG,KAAK,EAAE,EAChC,UAAU,EACV,QAAQ,EACR,MAAM,EACN,kBAAkB,GACG,EAAiC,EAAE;IACxD,MAAM,SAAS,GAAG,MAAM,IAAA,6BAAY,EAAC,EAAC,MAAM,EAAC,CAAC,CAAC;IAE/C,IAAI,KAAK,GAAG,MAAM,IAAA,aAAQ,EAAC;QAC1B,UAAU;QACV,MAAM,EAAE,IAAA,sBAAW,EAAC,QAAQ,CAAC;QAC7B,MAAM;QACN,mBAAmB,EAAE,SAAS;KAC9B,CAAC,CAAC;IAEH,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QACvB,OAAO;YACN,gBAAgB,EAAE,CAAC;SACnB,CAAC;KACF;IAED,IAAI,SAAS,GAAG,CAAC,CAAC;IAElB,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACxB,SAAS,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;;YAClC,OAAO,CAAC,GAAG,CAAC,MAAA,CAAC,CAAC,IAAI,mCAAI,CAAC,CAAC,CAAC;QAC1B,CAAC,EAAE,CAAC,CAAC,CAAC;QACN,MAAM,IAAA,wBAAU,EAAC;YAChB,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAa,CAAC;YACvC,MAAM,EAAE,UAAoB;YAC5B,kBAAkB,EAAE,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;YAC3D,mBAAmB,EAAE,GAAG,EAAE,CAAC,SAAS;YACpC,MAAM;SACN,CAAC,CAAC;QACH,KAAK,GAAG,MAAM,IAAA,aAAQ,EAAC;YACtB,UAAU;YACV,MAAM,EAAE,IAAA,sBAAW,EAAC,QAAQ,CAAC;YAC7B,MAAM;YACN,mBAAmB,EAAE,SAAS;SAC9B,CAAC,CAAC;KACH;IAED,OAAO;QACN,gBAAgB,EAAE,SAAS;KAC3B,CAAC;AACH,CAAC,CAAC;AA7CW,QAAA,UAAU,cA6CrB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
2
|
/**
|
|
3
3
|
* @description Creates an AWS Lambda function in your account that will be able to render a video in the cloud.
|
|
4
|
-
* @link https://remotion.
|
|
4
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/deployfunction
|
|
5
5
|
* @param options.createCloudWatchLogGroup Whether you'd like to create a CloudWatch Log Group to store the logs for this function.
|
|
6
6
|
* @param options.region The region you want to deploy your function to.
|
|
7
7
|
* @param options.timeoutInSeconds After how many seconds the lambda function should be killed if it does not end itself.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-function.d.ts","sourceRoot":"","sources":["../../src/api/deploy-function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy-function.d.ts","sourceRoot":"","sources":["../../src/api/deploy-function.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAWjD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,YAAmB;IAC7C,wBAAwB,EAAE,OAAO,CAAC;IAClC,MAAM,EAAE,SAAS,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CACvB,KAAG,QAAQ;IACX,YAAY,EAAE,MAAM,CAAC;CACrB,CAsCA,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.deployFunction = void 0;
|
|
4
|
+
const get_functions_1 = require("../api/get-functions");
|
|
4
5
|
const constants_1 = require("../shared/constants");
|
|
6
|
+
const docs_url_1 = require("../shared/docs-url");
|
|
5
7
|
const function_zip_path_1 = require("../shared/function-zip-path");
|
|
6
8
|
const get_account_id_1 = require("../shared/get-account-id");
|
|
7
9
|
const random_hash_1 = require("../shared/random-hash");
|
|
@@ -11,7 +13,7 @@ const validate_timeout_1 = require("../shared/validate-timeout");
|
|
|
11
13
|
const create_function_1 = require("./create-function");
|
|
12
14
|
/**
|
|
13
15
|
* @description Creates an AWS Lambda function in your account that will be able to render a video in the cloud.
|
|
14
|
-
* @link https://remotion.
|
|
16
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/deployfunction
|
|
15
17
|
* @param options.createCloudWatchLogGroup Whether you'd like to create a CloudWatch Log Group to store the logs for this function.
|
|
16
18
|
* @param options.region The region you want to deploy your function to.
|
|
17
19
|
* @param options.timeoutInSeconds After how many seconds the lambda function should be killed if it does not end itself.
|
|
@@ -24,6 +26,14 @@ const deployFunction = async (options) => {
|
|
|
24
26
|
(0, validate_aws_region_1.validateAwsRegion)(options.region);
|
|
25
27
|
const fnNameRender = constants_1.RENDER_FN_PREFIX + (0, random_hash_1.randomHash)();
|
|
26
28
|
const accountId = await (0, get_account_id_1.getAccountId)({ region: options.region });
|
|
29
|
+
const fns = await (0, get_functions_1.getFunctions)({
|
|
30
|
+
compatibleOnly: true,
|
|
31
|
+
region: options.region,
|
|
32
|
+
});
|
|
33
|
+
const alreadyDeployed = fns.find((f) => f.version === constants_1.CURRENT_VERSION);
|
|
34
|
+
if (alreadyDeployed) {
|
|
35
|
+
throw new Error(`Already found a function (${alreadyDeployed.functionName}) with version ${constants_1.CURRENT_VERSION} deployed in region ${options.region}. You only need 1 function per region, see ${docs_url_1.DOCS_URL}/docs/lambda/faq#do-i-need-to-deploy-a-function-for-each-render `);
|
|
36
|
+
}
|
|
27
37
|
const created = await (0, create_function_1.createFunction)({
|
|
28
38
|
createCloudWatchLogGroup: options.createCloudWatchLogGroup,
|
|
29
39
|
region: options.region,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-function.js","sourceRoot":"","sources":["../../src/api/deploy-function.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"deploy-function.js","sourceRoot":"","sources":["../../src/api/deploy-function.ts"],"names":[],"mappings":";;;AAAA,wDAAkD;AAElD,mDAAsE;AACtE,iDAA4C;AAC5C,mEAAyD;AACzD,6DAAsD;AACtD,uDAAiD;AACjD,uEAAgE;AAChE,yEAAkE;AAClE,iEAA2D;AAC3D,uDAAiD;AAEjD;;;;;;;;GAQG;AACI,MAAM,cAAc,GAAG,KAAK,EAAE,OAKpC,EAEE,EAAE;IACJ,IAAA,yCAAkB,EAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAA,kCAAe,EAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC1C,IAAA,uCAAiB,EAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAElC,MAAM,YAAY,GAAG,4BAAgB,GAAG,IAAA,wBAAU,GAAE,CAAC;IACrD,MAAM,SAAS,GAAG,MAAM,IAAA,6BAAY,EAAC,EAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAC,CAAC,CAAC;IAE/D,MAAM,GAAG,GAAG,MAAM,IAAA,4BAAY,EAAC;QAC9B,cAAc,EAAE,IAAI;QACpB,MAAM,EAAE,OAAO,CAAC,MAAM;KACtB,CAAC,CAAC;IAEH,MAAM,eAAe,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,2BAAe,CAAC,CAAC;IAEvE,IAAI,eAAe,EAAE;QACpB,MAAM,IAAI,KAAK,CACd,6BAA6B,eAAe,CAAC,YAAY,kBAAkB,2BAAe,uBAAuB,OAAO,CAAC,MAAM,8CAA8C,mBAAQ,kEAAkE,CACvP,CAAC;KACF;IAED,MAAM,OAAO,GAAG,MAAM,IAAA,gCAAc,EAAC;QACpC,wBAAwB,EAAE,OAAO,CAAC,wBAAwB;QAC1D,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,OAAO,EAAE,gCAAY;QACrB,YAAY,EAAE,YAAY;QAC1B,SAAS;QACT,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"}
|
|
@@ -19,7 +19,7 @@ export declare type DeploySiteReturnType = Promise<{
|
|
|
19
19
|
}>;
|
|
20
20
|
/**
|
|
21
21
|
* @description Deploys a Remotion project to an S3 bucket to prepare it for rendering on AWS Lambda.
|
|
22
|
-
* @link https://remotion.
|
|
22
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/deploysite
|
|
23
23
|
* @param {AwsRegion} params.region The region in which the S3 bucket resides in.
|
|
24
24
|
* @param {string} params.entryPoint An absolute path to the entry file of your Remotion project.
|
|
25
25
|
* @param {string} params.bucketName The name of the bucket to deploy your project into.
|
package/dist/api/deploy-site.js
CHANGED
|
@@ -14,7 +14,7 @@ const enable_s3_website_1 = require("./enable-s3-website");
|
|
|
14
14
|
const upload_dir_1 = require("./upload-dir");
|
|
15
15
|
/**
|
|
16
16
|
* @description Deploys a Remotion project to an S3 bucket to prepare it for rendering on AWS Lambda.
|
|
17
|
-
* @link https://remotion.
|
|
17
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/deploysite
|
|
18
18
|
* @param {AwsRegion} params.region The region in which the S3 bucket resides in.
|
|
19
19
|
* @param {string} params.entryPoint An absolute path to the entry file of your Remotion project.
|
|
20
20
|
* @param {string} params.bucketName The name of the bucket to deploy your project into.
|
|
@@ -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,CAAC,UAAU;QAC5B,mBAAmB;QACnB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ;KACxB,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,MAAM,IAAA,+CAA0B,EAAC;QACjD,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,mBAAmB;QACnB,GAAG,EAAE,IAAA,sCAAkB,EAAC,cAAc,CAAC;QACvC,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,UAAU,EAAE,MAAA,KAAK,CAAC,UAAU,mCAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;KACjD,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAE9D,0BAAe,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAElD,MAAM,WAAW,GAAG,IAAA,sBAAiB,EAAC,UAAU,CAAC,CAAC;IAClD,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC3C,QAAQ;aACN,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE;YACjB,WAAW,IAAI,CAAC,CAAC,MAAM,CAAC;QACzB,CAAC,CAAC;aACD,IAAI,CAAC,WAAW,CAAC;aACjB,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;aACjC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,OAAO;QACN,UAAU;QACV,WAAW;KACX,CAAC;AACH,CAAC,CAAC;AAzCW,QAAA,aAAa,iBAyCxB"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -12,7 +12,7 @@ declare type GetFunctionInfoArgs = {
|
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* @description Given a region and function name, returns information about the function such as version, memory size and timeout.
|
|
15
|
-
* @link https://remotion.
|
|
15
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/getfunctioninfo
|
|
16
16
|
* @param {AwsRegion} options.region The region in which the function resides in.
|
|
17
17
|
* @param {string} options.functionName The name of the function
|
|
18
18
|
* @return {Promise<FunctionInfo>} Promise resolving to information about the function.
|
|
@@ -7,7 +7,7 @@ const get_function_version_1 = require("../shared/get-function-version");
|
|
|
7
7
|
const validate_aws_region_1 = require("../shared/validate-aws-region");
|
|
8
8
|
/**
|
|
9
9
|
* @description Given a region and function name, returns information about the function such as version, memory size and timeout.
|
|
10
|
-
* @link https://remotion.
|
|
10
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/getfunctioninfo
|
|
11
11
|
* @param {AwsRegion} options.region The region in which the function resides in.
|
|
12
12
|
* @param {string} options.functionName The name of the function
|
|
13
13
|
* @return {Promise<FunctionInfo>} Promise resolving to information about the function.
|
|
@@ -4,7 +4,7 @@ import { FunctionInfo } from './get-function-info';
|
|
|
4
4
|
*
|
|
5
5
|
*
|
|
6
6
|
* @description Lists Remotion Lambda render functions deployed to AWS Lambda.
|
|
7
|
-
* @link https://remotion.
|
|
7
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/getfunctions
|
|
8
8
|
* @param options.region The region of which the functions should be listed.
|
|
9
9
|
* @param options.compatibleOnly Whether only functions compatible with the installed version of Remotion Lambda should be returned.
|
|
10
10
|
* @returns An array with the objects containing information about the deployed functions.
|
|
@@ -9,7 +9,7 @@ const get_function_version_1 = require("../shared/get-function-version");
|
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* @description Lists Remotion Lambda render functions deployed to AWS Lambda.
|
|
12
|
-
* @link https://remotion.
|
|
12
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/getfunctions
|
|
13
13
|
* @param options.region The region of which the functions should be listed.
|
|
14
14
|
* @param options.compatibleOnly Whether only functions compatible with the installed version of Remotion Lambda should be returned.
|
|
15
15
|
* @returns An array with the objects containing information about the deployed functions.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AwsRegion } from '../pricing/aws-regions';
|
|
2
2
|
/**
|
|
3
3
|
* @description Gets the current status of a render originally triggered via renderVideoOnLambda().
|
|
4
|
-
* @link https://remotion.
|
|
4
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/getrenderprogress
|
|
5
5
|
* @param {string} params.functionName The name of the function used to trigger the render.
|
|
6
6
|
* @param {string} params.bucketName The name of the bucket that was used in the render.
|
|
7
7
|
* @param {string} params.renderId The ID of the render that was returned by `renderVideoOnLambda()`.
|
|
@@ -5,7 +5,7 @@ const call_lambda_1 = require("../shared/call-lambda");
|
|
|
5
5
|
const constants_1 = require("../shared/constants");
|
|
6
6
|
/**
|
|
7
7
|
* @description Gets the current status of a render originally triggered via renderVideoOnLambda().
|
|
8
|
-
* @link https://remotion.
|
|
8
|
+
* @link https://remotion-lambda-alpha.netlify.app/docs/lambda/getrenderprogress
|
|
9
9
|
* @param {string} params.functionName The name of the function used to trigger the render.
|
|
10
10
|
* @param {string} params.bucketName The name of the bucket that was used in the render.
|
|
11
11
|
* @param {string} params.renderId The ID of the render that was returned by `renderVideoOnLambda()`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role-permissions.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/role-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"role-permissions.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/role-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAC,MAAM,cAAc,CAAC;AAOnD,eAAO,MAAM,eAAe,EAAE;IAC7B,OAAO,EAAE,CAAC,EAAE,GAAG,GAAG,GAAG,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB,EA4BA,CAAC"}
|
|
@@ -8,12 +8,11 @@ exports.rolePermissions = [
|
|
|
8
8
|
actions: [aws_policies_1.s3.ListAllMyBuckets],
|
|
9
9
|
resource: ['*'],
|
|
10
10
|
},
|
|
11
|
-
{
|
|
12
|
-
actions: [aws_policies_1.s3.CreateBucket, aws_policies_1.s3.ListBucket, aws_policies_1.s3.PutBucketAcl],
|
|
13
|
-
resource: [`arn:aws:s3:::*`],
|
|
14
|
-
},
|
|
15
11
|
{
|
|
16
12
|
actions: [
|
|
13
|
+
aws_policies_1.s3.CreateBucket,
|
|
14
|
+
aws_policies_1.s3.ListBucket,
|
|
15
|
+
aws_policies_1.s3.PutBucketAcl,
|
|
17
16
|
aws_policies_1.s3.GetObject,
|
|
18
17
|
aws_policies_1.s3.DeleteObject,
|
|
19
18
|
aws_policies_1.s3.PutObjectAcl,
|
|
@@ -28,7 +27,9 @@ exports.rolePermissions = [
|
|
|
28
27
|
},
|
|
29
28
|
{
|
|
30
29
|
actions: [aws_policies_1.logs.CreateLogStream, aws_policies_1.logs.PutLogEvents],
|
|
31
|
-
resource: [
|
|
30
|
+
resource: [
|
|
31
|
+
`arn:aws:logs:*:*:log-group:${constants_1.LOG_GROUP_PREFIX}${constants_1.RENDER_FN_PREFIX}*`,
|
|
32
|
+
],
|
|
32
33
|
},
|
|
33
34
|
];
|
|
34
35
|
//# sourceMappingURL=role-permissions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role-permissions.js","sourceRoot":"","sources":["../../../src/api/iam-validation/role-permissions.ts"],"names":[],"mappings":";;;AAAA,+CAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"role-permissions.js","sourceRoot":"","sources":["../../../src/api/iam-validation/role-permissions.ts"],"names":[],"mappings":";;;AAAA,+CAAmD;AACnD,sDAIgC;AAEnB,QAAA,eAAe,GAGtB;IACL;QACC,OAAO,EAAE,CAAC,iBAAE,CAAC,gBAAgB,CAAC;QAC9B,QAAQ,EAAE,CAAC,GAAG,CAAC;KACf;IACD;QACC,OAAO,EAAE;YACR,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,UAAU;YACb,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,SAAS;YACZ,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,YAAY;YACf,iBAAE,CAAC,SAAS;YACZ,iBAAE,CAAC,iBAAiB;SACpB;QACD,QAAQ,EAAE,CAAC,gBAAgB,kCAAsB,GAAG,CAAC;KACrD;IACD;QACC,OAAO,EAAE,CAAC,qBAAM,CAAC,cAAc,CAAC;QAChC,QAAQ,EAAE,CAAC,+BAA+B,4BAAgB,GAAG,CAAC;KAC9D;IACD;QACC,OAAO,EAAE,CAAC,mBAAI,CAAC,eAAe,EAAE,mBAAI,CAAC,YAAY,CAAC;QAClD,QAAQ,EAAE;YACT,8BAA8B,4BAAgB,GAAG,4BAAgB,GAAG;SACpE;KACD;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-rule.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/simulate-rule.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAGpD,oBAAY,YAAY,GAAG,SAAS,GAAG,cAAc,GAAG,cAAc,CAAC;AAEvE,oBAAY,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,YAAY,YAAmB;IAC3C,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"simulate-rule.d.ts","sourceRoot":"","sources":["../../../src/api/iam-validation/simulate-rule.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAGpD,oBAAY,YAAY,GAAG,SAAS,GAAG,cAAc,GAAG,cAAc,CAAC;AAEvE,oBAAY,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,YAAY,YAAmB;IAC3C,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CAChB,KAAG,QAAQ,gBAAgB,EAAE,CAiD7B,CAAC"}
|