如何在 CloudFormation 中定义 CloudFront 源组?
How do I define a CloudFront Origin Group in CloudFormation?
我想在我的 CloudFormation yaml
文件中定义一个 CloudFront Origin Group。
我该怎么做?还是 CloudFormation 还不支持?
如果 CloudFormation 支持服务 X 功能 Y,我总是很难找到明确的答案。我目前的目标是查看 Resource Types reference,然后向下钻取直到找到我要查找的内容。如果有人知道更好的方法,请告诉我。
2020 年 3 月 15 日更新
这个has been released. See the updated CloudFormation docs.
原答案
尚不支持。 AWS 在 2018 年 11 月 25 日说:
https://forums.aws.amazon.com/message.jspa?messageID=878667#878667
CloudFormation does not support origin groups yet. We have heard this from other customers as well and it is added to our feature backlog. However, we don't have a timeline to offer at this time.
不过,cloudformation 不支持此功能。日期:2019 年 7 月 16 日
您可以使用 AWS 自定义资源和 Lambda-Backed 自定义资源实现此目的。
以下链接供您参考。
自定义资源 -https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html
AWS Lambda-backed 自定义资源 -
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources-lambda.html
CloudFormation 现在支持 specifying Origin Group CloudFront 分发配置。但是,据我所知,您不能(还)在 CloudFormation
中创建原始组
我想在我的 CloudFormation yaml
文件中定义一个 CloudFront Origin Group。
我该怎么做?还是 CloudFormation 还不支持?
如果 CloudFormation 支持服务 X 功能 Y,我总是很难找到明确的答案。我目前的目标是查看 Resource Types reference,然后向下钻取直到找到我要查找的内容。如果有人知道更好的方法,请告诉我。
2020 年 3 月 15 日更新
这个has been released. See the updated CloudFormation docs.
原答案
尚不支持。 AWS 在 2018 年 11 月 25 日说:
https://forums.aws.amazon.com/message.jspa?messageID=878667#878667
CloudFormation does not support origin groups yet. We have heard this from other customers as well and it is added to our feature backlog. However, we don't have a timeline to offer at this time.
不过,cloudformation 不支持此功能。日期:2019 年 7 月 16 日
您可以使用 AWS 自定义资源和 Lambda-Backed 自定义资源实现此目的。
以下链接供您参考。
自定义资源 -https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html
AWS Lambda-backed 自定义资源 - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources-lambda.html
CloudFormation 现在支持 specifying Origin Group CloudFront 分发配置。但是,据我所知,您不能(还)在 CloudFormation
中创建原始组