🎥 Make videos programmatically with React
All user to pass an aws region for custom credentials
Jianneng Lief57864f9f00
diff --git a/packages/lambda/src/shared/aws-clients.ts b/packages/lambda/src/shared/aws-clients.tsindex e507ae0109..f6623a493f 100644--- a/packages/lambda/src/shared/aws-clients.ts+++ b/packages/lambda/src/shared/aws-clients.ts@@ -153,6 +153,7 @@ export type CustomCredentialsWithoutSensitiveData = {export type CustomCredentials = CustomCredentialsWithoutSensitiveData & {accessKeyId: string | null;secretAccessKey: string | null;+ region: AwsRegion | undefined;};export const getServiceClient = <T extends keyof ServiceMapping>({@@ -203,7 +204,7 @@ export const getServiceClient = <T extends keyof ServiceMapping>({if (customCredentials) {_clients[key] = new Client({- region: customCredentials.endpoint.endsWith('amazonaws.com') ? region: 'us-east-1',+ region: customCredentials.region ?? 'us-east-1',credentials:customCredentials.accessKeyId && customCredentials.secretAccessKey? {