This line will take the region defined in the dataSource configuration and overwrite it with the region set in the provider section in the serverless.yml:
Object.assign({}, ds.config, config),
It should be the other way round so the region from the dataStore will have the priority.
Hello.
There is a bug in building the Cloudformation definition of the RELATIONAL_DATABASE when using custom region.
Here is the code from the reference file below:
This line will take the region defined in the dataSource configuration and overwrite it with the region set in the provider section in the serverless.yml:
Object.assign({}, ds.config, config),
It should be the other way round so the region from the dataStore will have the priority.
Here is the reference to the file with code mentioned above: https://github.com/sid88in/serverless-appsync-plugin/blob/a2bb44a211ab23d725a8b21dae58564393d3ab9d/src/index.js#L1143