Skip to content

🎥 Make videos programmatically with React

`@remotion/serverless`: Custom output destination provider: Surface original error when getting a 403

Jonny Burgerf99e1c31606a
diff --git a/packages/serverless/src/find-output-file-in-bucket.ts b/packages/serverless/src/find-output-file-in-bucket.ts
index 4359b1c3fa..b05a7f7b6c 100644
--- a/packages/serverless/src/find-output-file-in-bucket.ts
+++ b/packages/serverless/src/find-output-file-in-bucket.ts
@@ -69,7 +69,8 @@ export const findOutputFileInBucket = async <Provider extends CloudProvider>({
customCredentials?.endpoint
? `(S3 Endpoint = ${customCredentials?.endpoint})`
: ''
- }. The Lambda role must have permission for both "s3:GetObject" and "s3:ListBucket" actions.`,
+ } - got a 403 error when heading the file. Check your credentials and permissions. The Lambda role must have permission for both "s3:GetObject" and "s3:ListBucket" actions.`,
+ {cause: err},
);
}