@remotion/lambda 3.3.84 → 3.3.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,31 @@ const aws_clients_1 = require("../shared/aws-clients");
6
6
  const createBucket = async ({ region, bucketName, }) => {
7
7
  await (0, aws_clients_1.getS3Client)(region, null).send(new client_s3_1.CreateBucketCommand({
8
8
  Bucket: bucketName,
9
+ }));
10
+ try {
11
+ await (0, aws_clients_1.getS3Client)(region, null).send(new client_s3_1.DeleteBucketOwnershipControlsCommand({
12
+ Bucket: bucketName,
13
+ }));
14
+ }
15
+ catch (err) {
16
+ if (err.message.includes('Access Denied')) {
17
+ throw new Error('Since April 2023, more AWS permissions are required to create an S3 bucket. You need to update your user policy to continue. See https://remotion.dev/docs/lambda/s3-public-access for instructions on how to resolve this issue.');
18
+ }
19
+ throw err;
20
+ }
21
+ try {
22
+ await (0, aws_clients_1.getS3Client)(region, null).send(new client_s3_1.DeletePublicAccessBlockCommand({
23
+ Bucket: bucketName,
24
+ }));
25
+ }
26
+ catch (err) {
27
+ if (err.message.includes('Access Denied')) {
28
+ throw new Error('PARTIAL SUCCESS: The s3:PutBucketOwnershipControls was found, but the s3:PutBucketPublicAccessBlock permission is not given. Since April 2023, more AWS permissions are required to create an S3 bucket. You need to update your user policy to continue. You need to update your user policy to continue. See https://remotion.dev/docs/lambda/s3-public-access for instructions on how to resolve this issue.');
29
+ }
30
+ throw err;
31
+ }
32
+ await (0, aws_clients_1.getS3Client)(region, null).send(new client_s3_1.PutBucketAclCommand({
33
+ Bucket: bucketName,
9
34
  ACL: 'public-read',
10
35
  }));
11
36
  };
@@ -37,6 +37,8 @@ exports.requiredPermissions = [
37
37
  aws_policies_1.s3.GetBucketLocation,
38
38
  aws_policies_1.s3.PutBucketAcl,
39
39
  aws_policies_1.s3.DeleteBucket,
40
+ aws_policies_1.s3.PutBucketOwnershipControls,
41
+ aws_policies_1.s3.PutBucketPublicAccessBlock,
40
42
  ],
41
43
  resource: [`arn:aws:s3:::${constants_1.REMOTION_BUCKET_PREFIX}*`],
42
44
  },
@@ -3,8 +3,5 @@ export declare const planFrameRanges: ({ framesPerLambda, frameRange, everyNthFr
3
3
  frameRange: [number, number];
4
4
  everyNthFrame: number;
5
5
  }) => {
6
- chunks: [
7
- number,
8
- number
9
- ][];
6
+ chunks: [number, number][];
10
7
  };
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
1
3
  import http from 'http';
2
4
  import https from 'https';
3
5
  import type { EnhancedErrorInfo } from '../functions/helpers/write-lambda-error';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lambda",
3
- "version": "3.3.84",
3
+ "version": "3.3.87",
4
4
  "description": "Distributed renderer for Remotion based on AWS Lambda",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -23,18 +23,18 @@
23
23
  "@aws-sdk/credential-providers": "3.272.0",
24
24
  "@aws-sdk/lib-storage": "3.272.0",
25
25
  "@aws-sdk/s3-request-presigner": "3.272.0",
26
- "@remotion/bundler": "3.3.84",
27
- "@remotion/cli": "3.3.84",
28
- "@remotion/renderer": "3.3.84",
26
+ "@remotion/bundler": "3.3.87",
27
+ "@remotion/cli": "3.3.87",
28
+ "@remotion/renderer": "3.3.87",
29
29
  "aws-policies": "^1.0.1",
30
30
  "mime-types": "2.1.34",
31
- "remotion": "3.3.84"
31
+ "remotion": "3.3.87"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@jonny/eslint-config": "3.0.266",
35
- "@remotion/bundler": "3.3.84",
36
- "@remotion/compositor-linux-arm64-musl": "3.3.84",
37
- "@remotion/compositor-linux-x64-musl": "3.3.84",
35
+ "@remotion/bundler": "3.3.87",
36
+ "@remotion/compositor-linux-arm64-musl": "3.3.87",
37
+ "@remotion/compositor-linux-x64-musl": "3.3.87",
38
38
  "@types/mime-types": "2.1.1",
39
39
  "@types/minimist": "1.2.2",
40
40
  "@types/node": "^14.14.14",
@@ -48,7 +48,7 @@
48
48
  "zip-lib": "^0.7.2"
49
49
  },
50
50
  "peerDependencies": {
51
- "@remotion/bundler": "3.3.84"
51
+ "@remotion/bundler": "3.3.87"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"
Binary file
Binary file