【发布时间】:2021-08-08 21:23:02
【问题描述】:
当我在 CloudFormation 中将 IamCertificateId 属性添加到我的 AWS::CloudFront::Distribution 时,出现以下错误:
资源处理程序返回消息:“提供的请求无效:指定的 SSL 证书不存在、不在 us-east-1 区域、无效或不包含有效的证书链。”
我确实通过运行aws iam list-server-certificates command 并确保IamCertificateId 属性的值与证书的the ASCA prefixed IAM ID 匹配来确保证书存在。
我忽略了us-east-1 区域消息,因为 IAM 是一项全球服务并且我没有使用 ACM 证书。另外,我在中国cn-north-1 地区开展业务,以防万一。
我很确定证书是“有效的”,因为我假设如果证书格式不正确,AWS 不会允许我使用 upload the certificate with aws iam upload-server-certificate。
因此,错误消息并未将我指向解决方案。我可能会错过什么?
【问题讨论】:
标签: amazon-web-services ssl amazon-cloudformation amazon-cloudfront amazon-iam