Skip to content

🎥 Make videos programmatically with React

fix

Jonny Burger67563e98f3d5
diff --git a/packages/lambda-client/src/index.ts b/packages/lambda-client/src/index.ts
index 2e641aed59..bbf1b6dcf8 100644
--- a/packages/lambda-client/src/index.ts
+++ b/packages/lambda-client/src/index.ts
@@ -4,6 +4,7 @@ export type {
GetOrCreateBucketOutput,
} from '@remotion/serverless-client';
export type {RuntimePreference} from './runtime-preference';
+import {REMOTION_BUCKET_PREFIX} from '@remotion/serverless-client';
import {
getCloudWatchLogsClient,
getIamClient,
@@ -144,4 +145,5 @@ export const LambdaClientInternals = {
cleanItems,
makeLambdaRenderStillPayload,
getRenderProgressPayload,
+ REMOTION_BUCKET_PREFIX,
};
diff --git a/packages/lambda/src/api/iam-validation/role-permissions.ts b/packages/lambda/src/api/iam-validation/role-permissions.ts
index a892723e4e..b0fefede0c 100644
--- a/packages/lambda/src/api/iam-validation/role-permissions.ts
+++ b/packages/lambda/src/api/iam-validation/role-permissions.ts
@@ -1,4 +1,4 @@
-import {REMOTION_BUCKET_PREFIX} from '@remotion/serverless';
+import {LambdaClientInternals} from '@remotion/lambda-client';
import {
LAMBDA_INSIGHTS_PREFIX,
LOG_GROUP_PREFIX,
@@ -24,7 +24,7 @@ export const rolePermissions: {
's3:PutObject',
's3:GetBucketLocation',
],
- resource: [`arn:aws:s3:::${REMOTION_BUCKET_PREFIX}*`],
+ resource: [`arn:aws:s3:::${LambdaClientInternals.REMOTION_BUCKET_PREFIX}*`],
},
{
actions: ['lambda:InvokeFunction'],
diff --git a/packages/lambda/src/api/iam-validation/user-permissions.ts b/packages/lambda/src/api/iam-validation/user-permissions.ts
index 1ee372326b..297f76b2ae 100644
--- a/packages/lambda/src/api/iam-validation/user-permissions.ts
+++ b/packages/lambda/src/api/iam-validation/user-permissions.ts
@@ -1,4 +1,4 @@
-import {REMOTION_BUCKET_PREFIX} from '@remotion/serverless';
+import {LambdaClientInternals} from '@remotion/lambda-client';
import {LOG_GROUP_PREFIX, RENDER_FN_PREFIX} from '../../defaults';
import {REMOTION_HOSTED_LAYER_ARN} from '../../shared/hosted-layers';
@@ -43,7 +43,7 @@ export const requiredPermissions: {
's3:PutBucketPublicAccessBlock',
's3:PutLifecycleConfiguration',
],
- resource: [`arn:aws:s3:::${REMOTION_BUCKET_PREFIX}*`],
+ resource: [`arn:aws:s3:::${LambdaClientInternals.REMOTION_BUCKET_PREFIX}*`],
},
{
id: 'BucketListing',
diff --git a/packages/lambda/src/index.ts b/packages/lambda/src/index.ts
index 68f9aee1dd..c5d9b7850a 100644
--- a/packages/lambda/src/index.ts
+++ b/packages/lambda/src/index.ts
@@ -1,19 +1,14 @@
import type {
AwsRegion,
CustomCredentials,
- deleteFunction,
DeleteFunctionInput,
DeleteRenderInput,
EnhancedErrorInfo,
- estimatePrice,
EstimatePriceInput,
- getAwsClient,
GetAwsClientInput,
GetAwsClientOutput,
- getCompositionsOnLambda,
GetCompositionsOnLambdaInput,
GetCompositionsOnLambdaOutput,
- getFunctions,
GetFunctionsInput,
GetOrCreateBucketInput,
GetOrCreateBucketOutput,
@@ -27,12 +22,17 @@ import type {
RenderStillOnLambdaOutput,
} from '@remotion/lambda-client';
import {
+ deleteFunction,
deleteRender,
getRenderProgress as deprecatedGetRenderProgress,
getSites as deprecatedGetSites,
presignUrl as deprecatedPresignUrl,
renderMediaOnLambda as deprecatedRenderMediaOnLambda,
renderStillOnLambda as deprecatedRenderStillOnLambda,
+ estimatePrice,
+ getAwsClient,
+ getCompositionsOnLambda,
+ getFunctions,
renderVideoOnLambda,
validateWebhookSignature,
} from '@remotion/lambda-client';