当我们从命令行在 AWS 中部署新的 Cloudfront 发行版时
aws cloudfront 更新分发 ...
我们现在收到一条消息,表明 TLS 值(我们没有更改)不在枚举中
An error occurred (MalformedXML) when calling the UpdateDistribution operation: 1 validation error detected: Value 'TLSv1.2_2021' at 'distributionConfig.viewerCertificate.minimumProtocolVersion' failed to satisfy constraint: Member must satisfy enum value set: [TLSv1.1_2016, SSLv3, TLSv1.2_2018, TLSv1.2_2019, TLSv1_2016, TLSv1]
在 Cloudfront(Web 界面)中,值“TLSv1.2_2021”可用且建议使用。当我们选择它并保存时,它就起作用了。仅在 CLI 中不起作用。
感谢您的帮助
最佳答案
我们之前使用的是 AWS-CLI 1.18,我们已更新到 AWS-CLI 2.5,现在可以使用了。
关于amazon-web-services - 从 AWS CLI 更新 aws cloudfront 发行版时,TLSv1.2_2021 不再满足枚举值集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71695171/