Conversation
Support AWS China regions (cn-northwest-1, cn-north-1) by routing API calls to route53.amazonaws.com.cn and scoping the SigV4 signature region accordingly. Resolves acmesh-official#2722.
|
Welcome |
Both are fixed by one block, dropping the later case "$AWS_REGION" in
cn-*)
AWS_HOST="route53.amazonaws.com.cn"
Region="cn-northwest-1"
;;
*)
AWS_HOST="route53.global.api.aws"
Region="us-east-1"
;;
esac
AWS_URL="https://$AWS_HOST"
|
Summary
This PR adds support for AWS China regions (
cn-northwest-1,cn-north-1) indns_aws.sh.Problem
Previously, Route 53 API endpoint (
route53.global.api.aws) and SigV4 signature region (us-east-1) were hardcoded, making it impossible to manage DNS records hosted on AWS China Route 53 using AWS China IAM credentials (InvalidClientTokenId/SignatureDoesNotMatch). Resolves #2722.Solution
AWS_REGION(e.g.cn-northwest-1orcn-north-1).route53.amazonaws.com.cn.AWS_REGIONin account configuration for automatic renewal.AWS_REGIONis not specified, it falls back toroute53.global.api.awsandus-east-1, preserving existing behavior for AWS Global users.Tested
Verified in production with real certificate issuance on AWS China Route 53 (
cn-northwest-1).