🎥 Make videos programmatically with React
document --force-bucket-name
Jonny Burger2709e1e6f9be
diff --git a/packages/docs/docs/lambda/cli/compositions.md b/packages/docs/docs/lambda/cli/compositions.mdindex c170256a97..b1bf312092 100644--- a/packages/docs/docs/lambda/cli/compositions.md+++ b/packages/docs/docs/lambda/cli/compositions.md@@ -77,6 +77,12 @@ Opens an actual browser to observe the composition fetching.Only prints the composition IDs, separated by a space.+### `--force-bucket-name`++_available from v3.3.42_++Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.+## See also- [`getCompositionsOnLambda()`](/docs/lambda/getcompositionsonlambda)diff --git a/packages/docs/docs/lambda/cli/render.md b/packages/docs/docs/lambda/cli/render.mdindex d29a9800a9..fc90a6902c 100644--- a/packages/docs/docs/lambda/cli/render.md+++ b/packages/docs/docs/lambda/cli/render.md@@ -237,3 +237,9 @@ _available from v3.3.38_If specified, this function will be used for rendering the individual chunks. This is useful if you want to use a function with higher or lower power for rendering the chunks than the main orchestration function.If you want to use this option, the function must be in the same region, the same account and have the same version as the main function.++### `--force-bucket-name`++_available from v3.3.42_++Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.diff --git a/packages/docs/docs/lambda/cli/sites.md b/packages/docs/docs/lambda/cli/sites.mdindex 92385da215..56b20f2cd7 100644--- a/packages/docs/docs/lambda/cli/sites.md+++ b/packages/docs/docs/lambda/cli/sites.md@@ -64,6 +64,12 @@ Uploads the project to a specific directory and returns a deterministic URL. Ifnpx remotion lambda sites create src/index.ts --site-name=my-project```+### `--force-bucket-name`++_available from v3.3.42_++Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.+<details><summary>Example output@@ -195,6 +201,12 @@ Removes a site without asking for confirmation.npx remotion lambda sites rm abcdef -y```+### `--force-bucket-name`++_available from v3.3.42_++Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.+## rmallRemove all sites in the selected AWS region.@@ -267,3 +279,9 @@ Removes all sites without asking for confirmation.```npx remotion lambda sites rmall -y```++### `--force-bucket-name`++_available from v3.3.42_++Specify a specific bucket name to be used. [This is not recommended](/docs/lambda/multiple-buckets), instead let Remotion discover the right bucket automatically.diff --git a/packages/docs/docs/lambda/multiple-buckets.md b/packages/docs/docs/lambda/multiple-buckets.mdindex 3ea52071b6..c1e9d550d7 100644--- a/packages/docs/docs/lambda/multiple-buckets.md+++ b/packages/docs/docs/lambda/multiple-buckets.md@@ -41,6 +41,8 @@ Also you must pass a `--bucket-name=your-bucket-name` option to the following CL- [`npx remotion lambda still`](/docs/lambda/cli/render)- [`npx remotion lambda compositions`](/docs/lambda/cli/render)- [`npx remotion lambda sites create`](/docs/lambda/cli/sites#create)+- [`npx remotion lambda sites rm`](/docs/lambda/cli/sites#rm)+- [`npx remotion lambda sites rmall`](/docs/lambda/cli/sites#rmall)Also you are unable to use the following APIs:diff --git a/packages/lambda/src/cli/args.ts b/packages/lambda/src/cli/args.tsindex 44e8470214..1558f65789 100644--- a/packages/lambda/src/cli/args.ts+++ b/packages/lambda/src/cli/args.ts@@ -32,7 +32,7 @@ type LambdaCommandLineOptions = {['webhook-secret']: string | undefined;['renderer-function-name']: string | undefined;['function-name']: string | undefined;- ['bucket-name']: string | undefined;+ ['force-bucket-name']: string | undefined;};export const parsedLambdaCli = CliInternals.minimist<LambdaCommandLineOptions>(diff --git a/packages/lambda/src/cli/commands/compositions/index.ts b/packages/lambda/src/cli/commands/compositions/index.tsindex 8ae90ab49a..66e84221eb 100644--- a/packages/lambda/src/cli/commands/compositions/index.ts+++ b/packages/lambda/src/cli/commands/compositions/index.ts@@ -51,7 +51,7 @@ export const compositionsCommand = async (envVariables,logLevel,timeoutInMilliseconds: puppeteerTimeout,- bucketName: parsedLambdaCli['bucket-name'],+ bucketName: parsedLambdaCli['force-bucket-name'],});CliInternals.printCompositions(comps);diff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.tsindex 37f3c53949..7b8772e966 100644--- a/packages/lambda/src/cli/commands/render/render.ts+++ b/packages/lambda/src/cli/commands/render/render.ts@@ -134,7 +134,7 @@ export const renderCommand = async (args: string[], remotionRoot: string) => {}: undefined,rendererFunctionName: parsedLambdaCli['renderer-function-name'] ?? null,- bucketName: parsedLambdaCli['bucket-name'],+ bucketName: parsedLambdaCli['force-bucket-name'],audioCodec: CliInternals.parsedCli['audio-codec'],});diff --git a/packages/lambda/src/cli/commands/sites/create.ts b/packages/lambda/src/cli/commands/sites/create.tsindex e7fb852ddf..10a3ed84fb 100644--- a/packages/lambda/src/cli/commands/sites/create.ts+++ b/packages/lambda/src/cli/commands/sites/create.ts@@ -81,7 +81,7 @@ export const sitesCreateSubcommand = async (const bucketStart = Date.now();- const cliBucketName = parsedLambdaCli['bucket-name'] ?? null;+ const cliBucketName = parsedLambdaCli['force-bucket-name'] ?? null;const bucketName =cliBucketName ??diff --git a/packages/lambda/src/cli/commands/sites/rm.ts b/packages/lambda/src/cli/commands/sites/rm.tsindex b335d163ee..9483ca796a 100644--- a/packages/lambda/src/cli/commands/sites/rm.ts+++ b/packages/lambda/src/cli/commands/sites/rm.ts@@ -29,7 +29,7 @@ export const sitesRmSubcommand = async (args: string[]) => {for (const siteName of args) {const bucketName =- parsedLambdaCli['bucket-name'] ??+ parsedLambdaCli['force-bucket-name'] ??(await getOrCreateBucket({region})).bucketName;const site = deployedSites.sites.find((s) => s.id === siteName.trim());diff --git a/packages/lambda/src/cli/commands/sites/rmall.ts b/packages/lambda/src/cli/commands/sites/rmall.tsindex 90536b0b59..b745ec4469 100644--- a/packages/lambda/src/cli/commands/sites/rmall.ts+++ b/packages/lambda/src/cli/commands/sites/rmall.ts@@ -16,7 +16,7 @@ export const sitesRmallSubcommand = async () => {});const bucketName =- parsedLambdaCli['bucket-name'] ??+ parsedLambdaCli['force-bucket-name'] ??(await getOrCreateBucket({region})).bucketName;for (const site of deployedSites.sites) {