🎥 Make videos programmatically with React
document security token
Jonny Burger89108fde7935
diff --git a/packages/docs/docs/lambda/region-selection.md b/packages/docs/docs/lambda/region-selection.mdindex b175d6ae62..b7471ac66e 100644--- a/packages/docs/docs/lambda/region-selection.md+++ b/packages/docs/docs/lambda/region-selection.md@@ -66,7 +66,7 @@ Some regions that are supported by Remotion are not enabled by default in an AWSThe security token included in the request is invalid```-Go to the AWS console, click on your name, then click `Account` and enable the regions that you would like to use.+see [here]## Other considerationsdiff --git a/packages/docs/docs/lambda/troubleshooting/security-token.md b/packages/docs/docs/lambda/troubleshooting/security-token.mdnew file mode 100644index 0000000000..eed2a7bdae--- /dev/null+++ b/packages/docs/docs/lambda/troubleshooting/security-token.md@@ -0,0 +1,32 @@+---+image: /generated/articles-docs-lambda-troubleshooting-security-token.png+sidebar_label: Security token is invalid+title: '"The security token included in the request is invalid"'+crumb: "Lambda"+---++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`](/docs/lambda/getregions#enabledbydefaultonly) option.++## See also++- [Region selection](/docs/lambda/region-selection)diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex f487e7574b..412484d9ea 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -404,6 +404,7 @@ module.exports = {"lambda/troubleshooting/rate-limit","lambda/troubleshooting/unrecognizedclientexception","lambda/troubleshooting/bucket-disallows-acl",+ "lambda/troubleshooting/security-token",],},"lambda/optimizing-cost",