Skip to content

🎥 Make videos programmatically with React

soften error message

Jonny Burger7f7ec1240e58
diff --git a/packages/lambda/src/api/create-function.ts b/packages/lambda/src/api/create-function.ts
index cc47ceefc8..9c79928f20 100644
--- a/packages/lambda/src/api/create-function.ts
+++ b/packages/lambda/src/api/create-function.ts
@@ -115,13 +115,12 @@ export const createFunction = async ({
new PutRuntimeManagementConfigCommand({
FunctionName,
UpdateRuntimeOn: 'Manual',
- // TODO: soften the error message
RuntimeVersionArn: `arn:aws:lambda:${region}::runtime:b97ad873eb5228db2e7d5727cd116734cc24c92ff1381739c4400c095404a2d3`,
})
);
} catch (err) {
console.warn(
- '⚠️ Could not lock the runtime version. We recommend to update your policies to prevent your functions from breaking soon: https://remotion.dev/docs/lambda/feb-2023-incident'
+ '⚠️ Could not lock the runtime version. We recommend to update your policies to prevent your functions from breaking in the future in case the AWS runtime changes. See https://remotion.dev/docs/lambda/feb-2023-incident for an example on how to update your policy.'
);
}