Rules:
ValidateHostedZone:
RuleCondition:
Fn::Equals:
- Ref: UseSSL
- 'Yes'
Assertions:
- Assert:
Fn::Not:
- Fn::Equals:
- Ref: ALBSSLCertificateARN
- ''
AssertDescription: ACM Certificate value cannot be empty if SSL is required
上面的代码应该验证“UseSSL”是否为“Yes”,“ALBSSLCertificateARN”不能为空。但这似乎不起作用。如果我不使用'Not'功能,则验证成功。(除非在参数中未设置“UseSSL”,否则我将不被允许继续。但是,我想要它的反面,上面似乎不起作用。有什么想法吗?