🎥 Make videos programmatically with React
don't need AWS SDK types explicitly
Jonny Burgerfc68a2e918b6
diff --git a/packages/lambda/package.json b/packages/lambda/package.jsonindex 4cd63d19e0..f97a5d1e38 100644--- a/packages/lambda/package.json+++ b/packages/lambda/package.json@@ -45,7 +45,6 @@"react-dom": ">=16.8.0"},"devDependencies": {- "@aws-sdk/types": "3.215.0","@jonny/eslint-config": "3.0.266","@types/mime-types": "2.1.1","@types/minimist": "1.2.2",diff --git a/packages/lambda/src/shared/aws-clients.ts b/packages/lambda/src/shared/aws-clients.tsindex 392b5b7314..26d02f3bc5 100644--- a/packages/lambda/src/shared/aws-clients.ts+++ b/packages/lambda/src/shared/aws-clients.ts@@ -5,10 +5,6 @@ import {S3Client} from '@aws-sdk/client-s3';import {ServiceQuotasClient} from '@aws-sdk/client-service-quotas';import {STSClient} from '@aws-sdk/client-sts';import {fromIni} from '@aws-sdk/credential-providers';-import type {- AwsCredentialIdentity,- AwsCredentialIdentityProvider,-} from '@aws-sdk/types';import {createHash} from 'crypto';import type {AwsRegion} from '../pricing/aws-regions';import {checkCredentials} from './check-credentials';@@ -26,8 +22,11 @@ const _clients: Partial<>> = {};+type CredentialPair = {accessKeyId: string; secretAccessKey: string};+type AwsCredentialIdentityProvider = ReturnType<typeof fromIni>;+const getCredentials = ():- | AwsCredentialIdentity+ | CredentialPair| AwsCredentialIdentityProvider| undefined => {if (isInsideLambda()) {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 029f4958e4..cbbc3558bd 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -587,7 +587,6 @@ importers:'@aws-sdk/credential-providers': 3.215.0'@aws-sdk/lib-storage': 3.215.0'@aws-sdk/s3-request-presigner': 3.215.0- '@aws-sdk/types': 3.215.0'@jonny/eslint-config': 3.0.266'@remotion/bundler': 3.3.8'@remotion/cli': 3.3.8@@ -628,7 +627,6 @@ importers:react-dom: [email protected]remotion: link:../coredevDependencies:- '@aws-sdk/types': 3.215.0'@jonny/eslint-config': 3.0.266_t54va6jeo5lf3vtqih5uiyrm5e'@types/mime-types': 2.1.1'@types/minimist': 1.2.2@@ -2147,6 +2145,7 @@ packages:/@aws-sdk/types/3.215.0:resolution: {integrity: sha512-eRbCVjwzTYd9C5e2mceScJ6D2kYDDEC3PLkYfJa+1wH9iiF2JlbiYozAokyeYBHQ+AjmD93MK58RBoM8iZfH0Q==}engines: {node: '>=14.0.0'}+ dev: false/@aws-sdk/url-parser/3.215.0:resolution: {integrity: sha512-r/qIk3TUlV36JvoRjTErFm0LzzgNKLB1YUG8zVZCGAc2TEATi8OVEmsZvi+KfTmsbszulITJVcjZKbHLbGoUzg==}