Back to Remotion

"The security token included in the request is invalid"

packages/docs/docs/lambda/troubleshooting/security-token.mdx

4.0.471665 B
Original Source

Some regions that are supported by Remotion are not enabled by default in an AWS account.

If you get a message:

The security token included in the request is invalid

it means the region is not enabled in your AWS account.

Option 1: Enable the regions

Go to the AWS console, then:

  • <Step>1</Step> Click on your name at the top right
  • <Step>2</Step> Click Account
  • <Step>3</Step> Enable the regions that you would like to use.

Option 2: Make getRegions() return only regions by default

Use the enabledByDefaultOnly option.

See also