packages/docs/docs/lambda/getfunctioninfo.mdx
Gets information about a function given its name and region.
To get a list of deployed functions, use getFunctions().
To deploy a function, use deployFunction().
import {getFunctionInfo} from '@remotion/lambda';
const info = await getFunctionInfo({
functionName: 'remotion-render-d7nd2a9f',
region: 'eu-central-1',
});
console.log(info.functionName); // remotion-render-d7nd2a9f
console.log(info.memorySizeInMb); // 1500
console.log(info.diskSizeInMb); // 2048
console.log(info.version); // '2021-07-14'
console.log(info.timeoutInSeconds); // 120
An object containing the following properties:
regionThe AWS region the function resides in.
functionNameThe name of the function.
logLevel?<AvailableFrom v="4.0.115"/>If the function does not exist, an error is thrown by the AWS SDK. If the function exists, promise resolving to an object with the following properties is returned:
memorySizeInMbThe amount of memory allocated to the function.
diskSizeInMbThe amount of disk space allocated to the function.
functionNameThe name of the function.
versionThe version of the function. Remotion is versioning the Lambda function and a render can only be triggered from a version of @remotion/lambda that is matching the one of the function.
timeoutInSecondsThe timeout that has been assigned to the Lambda function.