【问题标题】:How to set the path on an S3 origin using CloudFormation?如何使用 CloudFormation 在 S3 源上设置路径?
【发布时间】:2015-06-09 12:02:20
【问题描述】:

我知道可以手动设置 CloudFront 分配的路径以指向 S3 存储桶的子文件夹。

如何使用 CloudFormation JSON 配置设置路径属性?

"CloudFrontDistribution" : {
    "Type" : "AWS::CloudFront::Distribution",
    "Properties" : {
        "DistributionConfig" : {
            "Origins" : [ {
                "DomainName": { "Fn::GetAtt" : [ "DataBucket", "DomainName" ] },
                "Id" : "S3Origin",
                "S3OriginConfig" : {}
            }],
            ...

我查看了有关 CloudFront 分布[1] 的 CloudFormation 文档,但他们没有提及任何有关路径属性的内容。

【问题讨论】:

    标签: amazon-cloudfront amazon-cloudformation


    【解决方案1】:

    我看到作为原点的路径最近(相对)于去年 12 月发布 - 请参阅此论坛帖子:https://forums.aws.amazon.com/ann.jspa?annID=2806。 可能 CloudFormation 没有收到此更新。可能值得联系他们的支持以查看何时可用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-21
      • 2015-04-05
      • 2018-02-24
      • 1970-01-01
      • 1970-01-01
      • 2016-08-06
      • 2018-11-18
      • 2016-09-10
      相关资源
      最近更新 更多