Skip to content

🎥 Make videos programmatically with React

Add `getAwsClient()` to `@remotion/lambda/client`

Jonny Burgerdad24634393a
diff --git a/packages/docs/docs/lambda/light-client.md b/packages/docs/docs/lambda/light-client.md
index d4062e2880..20fce00ba3 100644
--- a/packages/docs/docs/lambda/light-client.md
+++ b/packages/docs/docs/lambda/light-client.md
@@ -24,11 +24,15 @@ import {
PresignUrlInput,
getSites,
speculateFunctionName,
- getServiceClient, // available from v4.0.60
CustomCredentials, // available from v4.0.60
+ getAwsClient, // available from v4.0.82
} from "@remotion/lambda/client";
```
+:::info
+`getServiceClient()` was included from v4.0.60 to v4.0.81 by mistake. Use [`getAwsClient()`](/docs/lambda/getawsclient) instead.
+:::
+
These functions don't have any Node.JS dependencies and can be bundled with a bundler such as Webpack or ESBuild.
**We don't recommend calling these functions from the browser directly, as you will leak your AWS credentials.**
diff --git a/packages/lambda/src/client.ts b/packages/lambda/src/client.ts
index 4c84e8fd03..62babc8900 100644
--- a/packages/lambda/src/client.ts
+++ b/packages/lambda/src/client.ts
@@ -26,7 +26,12 @@ import type {AwsRegion} from './pricing/aws-regions';
import type {RenderProgress} from './shared/constants';
import type {WebhookPayload} from './shared/invoke-webhook';
-export {CustomCredentials, getServiceClient} from './shared/aws-clients';
+export {
+ getAwsClient,
+ GetAwsClientInput,
+ GetAwsClientOutput,
+} from './api/get-aws-client';
+export {CustomCredentials} from './shared/aws-clients';
export {
renderVideoOnLambda,
renderMediaOnLambda,