Two services of a system exist in the AWS China region and the AWS US region.
According to this link:
Deploy AWS Elastic beanstalk to an environment in different region
I tried to deploy an instance of AWS beanstalk in USA on an instance of AWS beanstalk in China.
I know the aws_access_key_id and aws_secret_access_key of China is different from the aws_access_key_id and aws_secret_access_key of USA.
So I modify the two files : /root/.aws/config and /root/.aws/credentials
aws_access_key_id = (USA)
aws_secret_access_key = (USA)
Then I use this command:
[root@ip-10-0-0-111 .aws]# eb init --region us-west-1
ERROR: InvalidParameterValueError - Platform 'arn:aws-cn:elasticbeanstalk:cn-north-1::platform/Tomcat 8 with Java 8 running on 64bit Amazon Linux/2.7.7' is in a different region.
How can I slove this question ?