1 回答
- 最新
- 投票最多
- 评论最多
0
【以下的回答经过翻译处理】 您在模板中对CloudFront Distribution资源做了哪些更改?您是否单独将WAF附加到CloudFormation上?如果您修改了影响WAF的属性,CloudFormation可能会覆盖它;如果您修改了需要替换的属性,CloudFormation将使用新的分配进行替换。
我建议您使用CloudFormation将AWS WAF与您的分配相关联。您可以使用模板中的DistributionConfig属性中的WebACLId [属性](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-webaclid)。如果您不想通过CloudFormation管理整个WAF,我建议您在模板中制定一个[参数](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html),以允许您指定WAF ACL Id,然后在分配资源中[使用](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html#parameters-section-structure-referencing)该参数来设置该值。
相关内容
- AWS 官方已更新 4 个月前
