remotion-dev / remotion

πŸŽ₯ Make videos programmatically with React
https://remotion.dev
Other
20.83k stars 1.05k forks source link

Deploy to AWS Lambda in `ap-southeast-5` Region Fails with Validation Error #4548

Open sontl opened 6 hours ago

sontl commented 6 hours ago

Deploy to AWS Lambda in ap-southeast-5 Region Fails with Validation Error

Bug Report πŸ›

Description
Attempting to deploy to AWS Lambda in the ap-southeast-5 (Malaysia) region results in a validation error. The error suggests that ap-southeast-5 is not recognized as a valid AWS region.

Error Message

TypeError: ap-southeast-5 is not a valid AWS region. Must be one of: 
eu-central-1, eu-west-1, eu-west-2, eu-west-3, eu-south-1, eu-north-1, us-east-1, 
us-east-2, us-west-1, us-west-2, af-south-1, ap-south-1, ap-east-1, ap-southeast-1, 
ap-southeast-2, ap-northeast-1, ap-northeast-2, ap-northeast-3, ca-central-1, 
me-south-1, sa-east-1
    at validateAwsRegion (/path/to/remotion/lambda/dist/shared/validate-aws-region.js:7:15)
    at getAwsRegion (/path/to/remotion/lambda/dist/cli/get-aws-region.js:19:53)
    ...

Steps to Reproduce

  1. Configure Remotion Lambda deployment with the region set to ap-southeast-5.
  2. Run the deployment command:
    npx remotion lambda function deploy
    npx remotion lambda sites create remotion/index.ts --site-name=
  3. Observe the error.

Expected Behavior
Deployment should recognize ap-southeast-5 as a valid AWS region and proceed without error.

Actual Behavior
Deployment fails with a region validation error.

Environment

Additional Information

Suggested Fix
Update the region validation logic in the validate-aws-region.js file to include ap-southeast-5.

Workaround
No known workaround at the moment.

Thank you for looking into this issue! Let me know if additional details or logs are required.

JonnyBurger commented 6 hours ago

We can consider adding support for this region in the future

At the moment we don't store the prices for it and have not deployed the Lambda Layers, this is the reason we only support a few regions at a time

See the regions supported: https://www.remotion.dev/docs/lambda/region-selection

sontl commented 2 hours ago

Yeah, hope it can be supported soon because it's cheapest pricing compare to others