🎥 Make videos programmatically with React
rename to forcebucketname
Jonny Burgeraf9ce921d630
diff --git a/packages/docs/docs/lambda/getcompositionsonlambda.md b/packages/docs/docs/lambda/getcompositionsonlambda.mdindex 661f1b8c0a..6662373817 100644--- a/packages/docs/docs/lambda/getcompositionsonlambda.md+++ b/packages/docs/docs/lambda/getcompositionsonlambda.md@@ -100,6 +100,12 @@ Accepted values:The default for Lambda is `"swangle"`, but `null` elsewhere.:::+### `forceBucketName?`++_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.+## Return valueReturns a promise that resolves to an array of available compositions. Example value:diff --git a/packages/docs/docs/lambda/rendermediaonlambda.md b/packages/docs/docs/lambda/rendermediaonlambda.mdindex 07a0ebaaad..99c6dd894f 100644--- a/packages/docs/docs/lambda/rendermediaonlambda.md+++ b/packages/docs/docs/lambda/rendermediaonlambda.md@@ -254,7 +254,7 @@ Accepted values:The default for Lambda is `swangle`, but `null` elsewhere.:::-### `overwrite`+### `overwrite?`_available from v3.2.25_@@ -262,7 +262,7 @@ If a custom out name is specified and a file already exists at this key in the SAn existing file at the output S3 key will conflict with the render and must be deleted beforehand. If this setting is `false` and a conflict occurs, an error will be thrown.-### `rendererFunctionName`+### `rendererFunctionName?`_optional, available from v3.3.38_@@ -270,7 +270,7 @@ If specified, this function will be used for rendering the individual chunks. ThIf 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.-### `webhook`+### `webhook?`_optional, available from v3.2.30_@@ -296,6 +296,12 @@ const webhook: RenderMediaOnLambdaInput["webhook"] = {};```+### `forceBucketName?`++_optional, 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 here for detailed instructions on how to set up your webhook](/docs/lambda/webhooks).## Return valuediff --git a/packages/docs/docs/lambda/renderstillonlambda.md b/packages/docs/docs/lambda/renderstillonlambda.mdindex b1b1f5d26b..f4496d5d3f 100644--- a/packages/docs/docs/lambda/renderstillonlambda.md+++ b/packages/docs/docs/lambda/renderstillonlambda.md@@ -180,6 +180,12 @@ Accepted values:The default for Lambda is `"swangle"`, but `null` elsewhere.:::+### `forceBucketName`++_optional, 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.+## Return valueReturns a promise resolving to an object with the following properties:diff --git a/packages/lambda/src/api/get-compositions-on-lambda.ts b/packages/lambda/src/api/get-compositions-on-lambda.tsindex 35d4b9005c..beaaef91cd 100644--- a/packages/lambda/src/api/get-compositions-on-lambda.ts+++ b/packages/lambda/src/api/get-compositions-on-lambda.ts@@ -15,7 +15,7 @@ export type GetCompositionsOnLambdaInput = {envVariables?: Record<string, string>;logLevel?: LogLevel;timeoutInMilliseconds?: number;- bucketName?: string;+ forceBucketName?: string;};export type GetCompositionsOnLambdaOutput = TCompMetadata[];@@ -42,13 +42,13 @@ export const getCompositionsOnLambda = async ({envVariables,logLevel,timeoutInMilliseconds,- bucketName,+ forceBucketName: bucketName,}: GetCompositionsOnLambdaInput): Promise<GetCompositionsOnLambdaOutput> => {const serializedInputProps = await serializeInputProps({inputProps,region,type: 'still',- bucketName: bucketName ?? null,+ userSpecifiedBucketName: bucketName ?? null,});try {diff --git a/packages/lambda/src/api/render-media-on-lambda.ts b/packages/lambda/src/api/render-media-on-lambda.tsindex c9f469b30c..7ccd6b83b6 100644--- a/packages/lambda/src/api/render-media-on-lambda.ts+++ b/packages/lambda/src/api/render-media-on-lambda.ts@@ -58,7 +58,7 @@ export type RenderMediaOnLambdaInput = {forceWidth?: number | null;forceHeight?: number | null;rendererFunctionName?: string | null;- bucketName?: string;+ forceBucketName?: string;audioCodec?: AudioCodec | null;};@@ -123,7 +123,7 @@ export const renderMediaOnLambda = async ({forceHeight,forceWidth,rendererFunctionName,- bucketName,+ forceBucketName: bucketName,audioCodec,}: RenderMediaOnLambdaInput): Promise<RenderMediaOnLambdaOutput> => {const actualCodec = validateLambdaCodec(codec);@@ -138,7 +138,7 @@ export const renderMediaOnLambda = async ({inputProps,region,type: 'video-or-audio',- bucketName: bucketName ?? null,+ userSpecifiedBucketName: bucketName ?? null,});try {const res = await callLambda({diff --git a/packages/lambda/src/api/render-still-on-lambda.ts b/packages/lambda/src/api/render-still-on-lambda.tsindex 5c8797046c..9a5df4710f 100644--- a/packages/lambda/src/api/render-still-on-lambda.ts+++ b/packages/lambda/src/api/render-still-on-lambda.ts@@ -32,7 +32,7 @@ export type RenderStillOnLambdaInput = {downloadBehavior?: DownloadBehavior;forceWidth?: number | null;forceHeight?: number | null;- bucketName?: string;+ forceBucketName?: string;};export type RenderStillOnLambdaOutput = {@@ -81,13 +81,13 @@ export const renderStillOnLambda = async ({downloadBehavior,forceHeight,forceWidth,- bucketName,+ forceBucketName,}: RenderStillOnLambdaInput): Promise<RenderStillOnLambdaOutput> => {const serializedInputProps = await serializeInputProps({inputProps,region,type: 'still',- bucketName: bucketName ?? null,+ userSpecifiedBucketName: forceBucketName ?? null,});try {@@ -114,7 +114,7 @@ export const renderStillOnLambda = async ({version: VERSION,forceHeight: forceHeight ?? null,forceWidth: forceWidth ?? null,- bucketName: bucketName ?? null,+ bucketName: forceBucketName ?? null,},region,});diff --git a/packages/lambda/src/cli/commands/compositions/index.ts b/packages/lambda/src/cli/commands/compositions/index.tsindex 66e84221eb..c28b0c9866 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['force-bucket-name'],+ forceBucketName: 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 7b8772e966..02f6dd39eb 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['force-bucket-name'],+ forceBucketName: parsedLambdaCli['force-bucket-name'],audioCodec: CliInternals.parsedCli['audio-codec'],});diff --git a/packages/lambda/src/shared/serialize-input-props.ts b/packages/lambda/src/shared/serialize-input-props.tsindex dd083df8a5..b48acb7c4d 100644--- a/packages/lambda/src/shared/serialize-input-props.ts+++ b/packages/lambda/src/shared/serialize-input-props.ts@@ -9,12 +9,12 @@ export const serializeInputProps = async ({inputProps,region,type,- bucketName: userSpecifiedBucketName,+ userSpecifiedBucketName,}: {inputProps: unknown;region: AwsRegion;type: 'still' | 'video-or-audio';- bucketName: string | null;+ userSpecifiedBucketName: string | null;}): Promise<SerializedInputProps> => {try {const payload = JSON.stringify(inputProps);