π₯ Make videos programmatically with React
docs[lambda]: remove `npx` from `remotion` command
Mohit Yadav4ac500c1e69a
diff --git a/packages/docs/docs/lambda/setup.md b/packages/docs/docs/lambda/setup.mdindex 69f5ab3a5d..f15d50d9f0 100644--- a/packages/docs/docs/lambda/setup.md+++ b/packages/docs/docs/lambda/setup.md@@ -53,18 +53,20 @@ Make sure no package version number has a `^` character in front of it as it canYour package.json should look like the following:```json- "@remotion/cli": "3.0.0", // Replace 3.0.0 with the current version+ "@remotion/cli": "3.0.0", // Replace 3.0.0 with the current version; install as a dev dependeny"@remotion/lambda": "3.0.0", // Remove any `^` character// ..."remotion": "3.0.0",```+If any of the above is missing, add them to the `package.json` file and then run `npm install`, `yarn install` or `pnpm install`.+## 2. Create role policy- Go to [AWS account IAM Policies section](https://console.aws.amazon.com/iamv2/home?#/policies)- Click on "Create policy"- Click on JSON-- In your project, type `npx remotion lambda policies role` in the command line and copy it into the "JSON" field on AWS.+- In your project, type `remotion lambda policies role` in the command line and copy it into the "JSON" field on AWS.- Click next. On the tags page, you don't need to fill in anything. Click next again.- Give the policy **exactly** the name `remotion-lambda-policy`. The other fields can be left as they are.@@ -110,14 +112,14 @@ REMOTION_AWS_SECRET_ACCESS_KEY=<Secret access key>- Select the user you just created.- Click "Add inline policy" under the "Add Permissions" dropdown in the "Permissions policies" panel.- Click the tab "JSON".-- Enter in your terminal: `npx remotion lambda policies user` and copy into the AWS text field what gets printed.+- Enter in your terminal: `remotion lambda policies user` and copy into the AWS text field what gets printed.- Click "Review policy".- Give the policy a name. For example `remotion-user-policy`, but it can be anything.- Click "Create policy" to confirm.## 7. Optional: Validate the permission setup-- Run `npx remotion lambda policies validate`+- Run `remotion lambda policies validate`<hr/>@@ -137,7 +139,7 @@ values={[Deploy a function that can render videos into your AWS account by executing the following command:```bash-npx remotion lambda functions deploy+remotion lambda functions deploy```</TabItem>@@ -180,7 +182,7 @@ values={[Run the following command to deploy your Remotion project to an S3 bucket. Pass as the last argument the [entry point](/docs/terminology#entry-point) of the project.```bash-npx remotion lambda sites create src/index.ts --site-name=my-video+remotion lambda sites create src/index.ts --site-name=my-video```A [`serveUrl`](/docs/terminology#serve-url) will be printed pointing to the deployed project.@@ -233,7 +235,7 @@ When you update your Remotion video in the future, redeploy your site. Pass theCheck the concurrency limit that AWS has given to your account:```-npx remotion lambda quotas+remotion lambda quotas```By default, it is `1000` concurrent invocations per region. However, new accounts might have a limit [as low as `10`](/docs/lambda/troubleshooting/rate-limit). Each Remotion render may use as much as 200 functions per render concurrently, so if your assigned limit is very low, [you might want to request an increase right away](/docs/lambda/troubleshooting/rate-limit).@@ -252,7 +254,7 @@ values={[Take the URL you received from the step 8 - your "serve URL" - and run the following command. Also pass in the [ID of the composition](/docs/composition) you'd like to render.```bash-npx remotion lambda render <serve-url> <composition-id>+remotion lambda render <serve-url> <composition-id>```Progress will be printed until the video finished rendering. Congrats! You rendered your first video using Remotion Lambda π