gpt4 book ai didi

amazon-web-services - 遇到不支持的属性 Indexdocument

转载 作者:行者123 更新时间:2023-12-03 07:38:43 24 4
gpt4 key购买 nike

  • 我正在使用 yaml 文件部署和配置 AWS CloudFront
  • 我收到一条消息,指出“遇到不受支持的属性 Indexdocument”

这是我的 yaml 文件中的代码和 block 代码。我正在关注Cloud Resume Challenge有关如何完成云简历挑战的指导指南。

Resources:
MyWebsite:
Type: AWS::S3::Bucket
Properties:
AccessControl: Public Read
WebsiteConfiguration:
Indexdocument: index.html
BucketName: mcderkaderkas-first-website


MyDistribution:
Type: "AWS::CloudFront::Distribution"
Properties:
DistributionConfig:
DefaultCacheBehavior:
ViewProtocolPolicy: allow-all
TargetOriginId: http://mcderkaderkas-first-website.s3-website-us-east-1.amazonaws.com
DefaultTTL: 0
MinTTL: 0
MaxTTL: 0
ForwardedValues:
QueryString: false
Origins:
- DomainName: http://mcderkaderkas-first-website.s3-website-us-east-1.amazonaws.com
Id: http://mcderkaderkas-first-website.s3-website-us-east-1.amazonaws.com
CustomOriginConfig:
OriginProtocolPolicy: match-viewer
Enabled: "true"
DefaultRootObject: index.html

CloudFormation events from stack operations (refresh every 0.5 seconds)


ResourceStatus ResourceType LogicalResourceId ResourceStatusReason

UPDATE_FAILED AWS::S3::Bucket MyWebsite 遇到不支持的属性 IndexdocumentUPDATE_ROLLBACK_IN_PROGRESS AWS::CloudFormation::Stack cloud-resume-challenge 以下资源无法更新:[我的网站]。UPDATE_COMPLETE AWS::S3::Bucket MyWebsite -UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS AWS::CloudFormation::Stack 云恢复挑战 -UPDATE_ROLLBACK_COMPLETE AWS::CloudFormation::Stack 云恢复挑战 -

错误:无法创建/更新堆栈:云恢复挑战,服务员 StackUpdateComplete 失败:服务员遇到终端故障状态:对于表达式“Stacks[].StackStatus”,我们匹配预期路径:“UPDATE_ROLLBACK_COMPLETE”至少一次

最佳答案

Cloudformation 通常提供相当不错的文档,说明什么要传递到哪里,包括 S3 bucketwebsite configuration .

在这种情况下,我可以看到您指定了一个键 Indexdocument,而文档大写 DocumentIndexDocument 。 Yaml、cloudformation 和几乎所有涉及计算机的其他内容都是区分大小写的(值得注意的异常(exception)包括具有默认设置、DNS 和电子邮件地址的 Windows/Mac 操作系统文件系统)。因此,请确保在您的 Yaml 文件中正确处理该情况!

关于amazon-web-services - 遇到不支持的属性 Indexdocument,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75463742/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com