@remotion/lambda 4.0.107 → 4.0.109

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.
@@ -23,13 +23,13 @@ const findFunctionName = async (logLevel) => {
23
23
  logLevel,
24
24
  };
25
25
  if (lambdasWithMatchingVersion.length === 0) {
26
- log_1.Log.error(`No lambda functions with version ${version_1.VERSION} found in your account.`);
26
+ log_1.Log.error(`No Lambda functions with version ${version_1.VERSION} found in your account.`);
27
27
  if (remotionLambdas.length > 0) {
28
28
  log_1.Log.error('Other functions were found, but are not compatible with this version of the CLI.');
29
29
  }
30
30
  log_1.Log.infoAdvanced(logOptions, 'Run');
31
31
  log_1.Log.infoAdvanced(logOptions, ` npx ${constants_1.BINARY_NAME} ${functions_1.FUNCTIONS_COMMAND} ${deploy_1.FUNCTIONS_DEPLOY_SUBCOMMAND}`);
32
- log_1.Log.infoAdvanced(logOptions, `to deploy a new lambda function.`);
32
+ log_1.Log.infoAdvanced(logOptions, `to deploy a new Lambda function.`);
33
33
  (0, quit_1.quit)(1);
34
34
  }
35
35
  if (lambdasWithMatchingVersion.length > 1) {
@@ -37,7 +37,7 @@ const findFunctionName = async (logLevel) => {
37
37
  const prevFunctions = [...lambdasWithMatchingVersion];
38
38
  lambdasWithMatchingVersion = lambdasWithMatchingVersion.filter((l) => l.functionName === args_1.parsedLambdaCli['function-name']);
39
39
  if (lambdasWithMatchingVersion.length === 0) {
40
- log_1.Log.error(`No lambda function with name "${args_1.parsedLambdaCli['function-name']}" and version ${version_1.VERSION} found in your account.`);
40
+ log_1.Log.error(`No Lambda function with name "${args_1.parsedLambdaCli['function-name']}" and version ${version_1.VERSION} found in your account.`);
41
41
  log_1.Log.infoAdvanced(logOptions);
42
42
  if (prevFunctions.length === 0) {
43
43
  log_1.Log.infoAdvanced(logOptions, `No functions for version ${version_1.VERSION} were found, deploy one using:`);
package/dist/cli/index.js CHANGED
@@ -134,9 +134,20 @@ AWS returned an "TooManyRequestsException" error message which could mean you re
134
134
  `.trim());
135
135
  }
136
136
  if ((_c = error.stack) === null || _c === void 0 ? void 0 : _c.includes('The security token included in the request is invalid')) {
137
- log_1.Log.error(`
137
+ const keyButDoesntStartWithAki = process.env.REMOTION_AWS_ACCESS_KEY_ID &&
138
+ !process.env.REMOTION_AWS_ACCESS_KEY_ID.startsWith('AKI');
139
+ const pureKeyButDoesntStartWithAki = process.env.AWS_ACCESS_KEY_ID &&
140
+ !process.env.AWS_ACCESS_KEY_ID.startsWith('AKI');
141
+ if (keyButDoesntStartWithAki || pureKeyButDoesntStartWithAki) {
142
+ log_1.Log.error(`
143
+ AWS returned an error message "The security token included in the request is invalid". A possible reason is that your AWS Access key ID is set but doesn't start with "AKI", which it usually should. The original message is:
144
+ `);
145
+ }
146
+ else {
147
+ log_1.Log.error(`
138
148
  AWS returned an error message "The security token included in the request is invalid". A possible reason for this is that you did not enable the region in your AWS account under "Account". The original message is:
139
149
  `);
150
+ }
140
151
  }
141
152
  if (error instanceof renderer_1.RenderInternals.SymbolicateableError) {
142
153
  await cli_1.CliInternals.printError(error, config_1.ConfigInternals.Logging.getLogLevel());
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getBrowserInstance = exports.forgetBrowserEventLoop = void 0;
4
4
  const renderer_1 = require("@remotion/renderer");
5
+ const version_1 = require("remotion/version");
5
6
  const get_chromium_executable_path_1 = require("./get-chromium-executable-path");
6
7
  const makeConfigurationString = (options, logLevel) => {
7
8
  var _a, _b, _c;
@@ -44,6 +45,7 @@ const getBrowserInstance = async (logLevel, indent, chromiumOptions) => {
44
45
  gl: (_a = chromiumOptions.gl) !== null && _a !== void 0 ? _a : 'swangle',
45
46
  };
46
47
  const configurationString = makeConfigurationString(actualChromiumOptions, logLevel);
48
+ renderer_1.RenderInternals.Log.info(`Rendering with Remotion v${version_1.VERSION}.`);
47
49
  if (launching) {
48
50
  renderer_1.RenderInternals.Log.info('Already waiting for browser launch...');
49
51
  await waitForLaunched();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "4.0.107",
3
+ "version": "4.0.109",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -26,10 +26,10 @@
26
26
  "aws-policies": "^1.0.1",
27
27
  "mime-types": "2.1.34",
28
28
  "zod": "3.22.3",
29
- "@remotion/cli": "4.0.107",
30
- "@remotion/bundler": "4.0.107",
31
- "remotion": "4.0.107",
32
- "@remotion/renderer": "4.0.107"
29
+ "@remotion/bundler": "4.0.109",
30
+ "@remotion/renderer": "4.0.109",
31
+ "remotion": "4.0.109",
32
+ "@remotion/cli": "4.0.109"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@jonny/eslint-config": "3.0.276",
@@ -43,11 +43,11 @@
43
43
  "ts-node": "^10.8.0",
44
44
  "vitest": "0.31.1",
45
45
  "zip-lib": "^0.7.2",
46
- "@remotion/compositor-linux-arm64-gnu": "4.0.107",
47
- "@remotion/bundler": "4.0.107"
46
+ "@remotion/bundler": "4.0.109",
47
+ "@remotion/compositor-linux-arm64-gnu": "4.0.109"
48
48
  },
49
49
  "peerDependencies": {
50
- "@remotion/bundler": "4.0.107"
50
+ "@remotion/bundler": "4.0.109"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public"
Binary file