🎥 Make videos programmatically with React
fix typo in running serverless and rename article to reflect serverless
Alex Fernandezb0d0814afaa5
diff --git a/packages/docs/docs/lambda/serverless-com-integration.md b/packages/docs/docs/lambda/serverless-framework-integration.mdsimilarity index 87%rename from packages/docs/docs/lambda/serverless-com-integration.mdrename to packages/docs/docs/lambda/serverless-framework-integration.mdindex be57b9abed..304c43b594 100644--- a/packages/docs/docs/lambda/serverless-com-integration.md+++ b/packages/docs/docs/lambda/serverless-framework-integration.md@@ -1,14 +1,14 @@----image: /generated/articles-docs-lambda-serverless-com-integration.png-title: Serverless and Remotion integration with AWS-slug: /lambda/serverless-com-integration+image: /generated/articles-docs-lambda-serverless-framework-integration.png+title: Serverless Framework and Remotion integration with AWS+slug: /lambda/serverless-framework-integrationcrumb: "Serverless"---import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';-This guide will show you how to use Remotion with [Serverless](https://www.serverless.com/). To supplement this guide, two projects have been created. The [remotion-app](https://github.com/alexfernandez803/remotion-serverless/tree/main/remotion-app) contains a remotion composition and utility scripts for deploying and deleting Remotion Lambda in AWS. The [serverless-app](https://github.com/alexfernandez803/remotion-serverless/tree/main/serverless-app) contains a Serverless project that deploys two Lambda functions. The [render_handler](https://github.com/alexfernandez803/remotion-serverless/blob/main/serverless-app/render_handler.ts) function, when invoked, will call the deployed Remotion Lambda function to render a video. The [progress_handler]([https://github.com/alexfernandez803/remotion-serverless/blob/main/serverless-app/progress_handler.ts]) function tracks the progress of the render. Both functions are configured to be invoked through [API Gateway](https://aws.amazon.com/api-gateway/) and are secured by [Cognito](https://aws.amazon.com/cognito/). The API Gateway and Cognito setup are automatically created by the Serverless deployment script upon execution of `serverless deploy`.-This assumes that you have knowledge in using [Serverless](https://www.serverless.com/) and understanding the syntax of [serverless.yml](https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml).+This guide will show you how to use Remotion with [Serverless Framework](https://www.serverless.com/). To supplement this guide, two projects have been created. The [remotion-app](https://github.com/alexfernandez803/remotion-serverless/tree/main/remotion-app) contains a remotion composition and utility scripts for deploying and deleting Remotion Lambda in AWS. The [serverless-app](https://github.com/alexfernandez803/remotion-serverless/tree/main/serverless-app) contains a Serverless project that deploys two Lambda functions. The [render_handler](https://github.com/alexfernandez803/remotion-serverless/blob/main/serverless-app/render_handler.ts) function, when invoked, will call the deployed Remotion Lambda function to render a video. The [progress_handler]([https://github.com/alexfernandez803/remotion-serverless/blob/main/serverless-app/progress_handler.ts]) function tracks the progress of the render. Both functions are configured to be invoked through [API Gateway](https://aws.amazon.com/api-gateway/) and are secured by [Cognito](https://aws.amazon.com/cognito/). The API Gateway and Cognito setup are automatically created by the Serverless deployment script upon execution of `serverless deploy`.+This assumes that you have knowledge in using [Serverless Framework](https://www.serverless.com/) and understanding the syntax of [serverless.yml](https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml).## remotion-app@@ -16,7 +16,6 @@ This contains instructions for setting up and installing the `remotion` Lambda t### Prequisites- Make sure that your local AWS profile is able to deploy to AWS, or follow this [guide](/docs/lambda/setup) to set up a user for your local machine.-### Setup#### 1. Clone or download the project@@ -121,7 +120,7 @@ pnpm run deploy-fn<TabItem value="yarn">```bash-yarnrun deploy-fn+yarn run deploy-fn```</TabItem>@@ -248,7 +247,7 @@ Each of the function is assigned with a role named `remotionLambdaServerlessRole- Click "Create role".- Under "Use cases", select "Lambda". Click next.- Under "Permissions policies", filter for `remotion-executionrole-policy` and click the checkbox to assign this policy. This `policy` should have been created, if not, follow this [guide](/docs/lambda/without-iam/#1-create-role-policy) in setting this up.- - Additionally, still in "Permission policies" clear the filter and filter again for `AWSLambdaBasicExecutionRole`. Click next.+ - Additionally, still in "Permission policies" clear the filter and filter again for `AWSLambdaBasicExecutionRole`. Click the checkbox and click next.- In the final step, name the role `remotionLambdaServerlessRole` exactly. You can leave the other fields as is.- Click "Create role" to confirm.@@ -373,5 +372,5 @@ This API will provide the progress details of the render, indicating whether it## See also- [Using Lambda without IAM user](/docs/lambda/without-iam)- [Permissions](/docs/lambda/permissions)-- [Serverless](https://www.serverless.com/framework/docs/getting-started)+- [Serverless Framework](https://www.serverless.com/framework/docs/getting-started)- Some codes are borrowed from [github-unwrapped-2021](https://github.com/remotion-dev/github-unwrapped-2021/tree/main/src)\ No newline at end of filediff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 6b55cc6b7b..5a86bcb524 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -419,7 +419,7 @@ module.exports = {},items: ["lambda/without-iam/index", "lambda/without-iam/example"],},- "lambda/serverless-com-integration",+ "lambda/serverless-framework-integration","lambda/optimizing-cost","lambda/optimizing-speed","lambda/limits",diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex efbed1fed3..71c820f9bd 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -798,10 +798,10 @@ export const articles = [crumb: "Lambda",},{- id: "lambda/serverless-com-integration",- title: "Serverless and Remotion integration with AWS",- relativePath: "docs/lambda/serverless-com-integration.md",- compId: "articles-docs-lambda-serverless-com-integration",+ id: "lambda/serverless-framework-integration",+ title: "Serverless Framework and Remotion integration with AWS",+ relativePath: "docs/lambda/serverless-framework-integration.md",+ compId: "articles-docs-lambda-serverless-framework-integration",crumb: "Serverless",},{diff --git a/packages/docs/static/generated/articles-docs-lambda-serverless-com-integration.png b/packages/docs/static/generated/articles-docs-lambda-serverless-com-integration.pngdeleted file mode 100644index e6367443ba..0000000000Binary files a/packages/docs/static/generated/articles-docs-lambda-serverless-com-integration.png and /dev/null differdiff --git a/packages/docs/static/generated/articles-docs-lambda-serverless-framework-integration.png b/packages/docs/static/generated/articles-docs-lambda-serverless-framework-integration.pngnew file mode 100644index 0000000000..3cebc90e7eBinary files /dev/null and b/packages/docs/static/generated/articles-docs-lambda-serverless-framework-integration.png differ