Skip to content

🎥 Make videos programmatically with React

`@remotion/lambda`: Fix warning of authorization header when saving to a different region

Jonny Burgera983a1ce8bd2
diff --git a/packages/lambda/src/shared/aws-clients.ts b/packages/lambda/src/shared/aws-clients.ts
index 501980580e..bcc196f1ec 100644
--- a/packages/lambda/src/shared/aws-clients.ts
+++ b/packages/lambda/src/shared/aws-clients.ts
@@ -258,7 +258,11 @@ export const getS3Client = (
region: AwsRegion,
customCredentials: CustomCredentials | null,
): S3Client => {
- return getServiceClient({region, service: 's3', customCredentials});
+ return getServiceClient({
+ region: customCredentials?.region ?? region,
+ service: 's3',
+ customCredentials,
+ });
};
export const getLambdaClient = (