serverless-appsync-plugin
serverless-appsync-plugin copied to clipboard
Deployment error: partition "aws" is not valid for resource when region is cn-north-1 or cn-northwest-1
The full error is "Partition "aws" is not valid for resource "arn:aws:dynamodb:cn-north-1:accountNo:table/ddbTable".".
The error is from the fact that "aws" should change to aws-cn
when region is "cn-north-1" or "cn-northwest-1" in
- [L132]{https://github.com/sid88in/serverless-appsync-plugin/blob/9d5f3a380c0c9905b7f38b7746a3e02c86b49d69/src/index.js#L132};
- [L618]{https://github.com/sid88in/serverless-appsync-plugin/blob/9d5f3a380c0c9905b7f38b7746a3e02c86b49d69/src/index.js#L618};
- [L656]{https://github.com/sid88in/serverless-appsync-plugin/blob/9d5f3a380c0c9905b7f38b7746a3e02c86b49d69/src/index.js#L656};
- [L708]{https://github.com/sid88in/serverless-appsync-plugin/blob/9d5f3a380c0c9905b7f38b7746a3e02c86b49d69/src/index.js#L708}