Back to Remotion

getRegions()

packages/docs/docs/lambda/getregions.mdx

4.0.461782 B
Original Source

Gets an array of all supported AWS regions of this release of Remotion Lambda.

Example

tsx
import {getRegions} from '@remotion/lambda';

// ---cut---

const regions = getRegions();
// ["eu-central-1", "us-east-1"]

API

The function takes an optional object, with the following options:

enabledByDefaultOnly

available from v3.3.11

Only return the regions which are enabled by default in a new AWS account.

Return value

An array of supported regions by this release of Remotion Lambda.

See also