Custom DynamoDB Region

Hello there,

Im pretty new to the Serverless framework and AWS in general and Im building an API application using these technologies.

One requirement of the project Im working on is the location of the DynamoDB instance. We would like to host the data in Canada. The trouble is that Lambda functions are not available in Canada but DynamoDB is. Is there a way I can specify a region specifically for the DynamoDB resource in my serverless.yaml file?

Unfortunately no. CloudFormation resource created in a single template can only be created in a single region.

You’ll have to create the DDB table separately, and then refer to from your Lambda functions in the other region.