我试图更新从边缘到区域的基本路径映射
aws apigateway update-domain-name --region eu-west-2 --domain-name example.com --patch-operations op=replace,path=/endpointConfiguration/types/EDGE,value=REGIONAL不管我得到了什么
An error occurred (BadRequestException) when calling the UpdateDomainName operation: /endpointConfiguration/types/EDGE Invalid request inputhttps://docs.aws.amazon.com/apigateway/api-reference/link-relation/domainname-update/的文档指定/endpointConfiguration/types是一个有效和可更新的路径,但是我尝试过的所有变体都没有工作。
发布于 2017-11-28 17:38:02
对于您的域名,必须首先添加区域类型,这将使您处于两个端点都存在的安全迁移状态,并且可以将DNS从边缘域名切换到区域域名(在添加区域端点类型后在响应中提供)。您还需要分别添加区域ACM证书(即使它将是相同的ACM )。
aws apigateway update-domain-name --region eu-west-2 --domain-name example.com \
--patch-operations \
op="add",path="/endpointConfiguration/types",value="REGIONAL" \
op="add",path="/regionalCertificateArn",value="<ARN>" 在安全地将DNS切换到区域域名后,可以删除边缘端点类型。
https://stackoverflow.com/questions/47443094
复制相似问题