gpt4 book ai didi

amazon-web-services - Cloudformation 失败并显示 'failed validation constraint for keyword [pattern]'

转载 作者:行者123 更新时间:2023-12-03 07:15:05 27 4
gpt4 key购买 nike

我正在尝试使用 AWS CloudFormation 创建工作流对象。此工作流程将与 AWS File Transfer 系列结合使用,以便文件在上传时复制到 S3。

AWSTemplateFormatVersion: "2010-09-09"

Resources:
SftpToS3Workflow:
Type: AWS::Transfer::Workflow
Properties:
Description: 'Workflow used by AWS File Transfer Family. Copies the files to S3'
Steps:
- Type: COPY
CopyStepDetails:
Name: copt-to-s3-wf-step
DestinationFileLocation:
S3FileLocation:
Bucket: !ImportValue GenesysS3BucketName
Key: "genesys/"
OverwriteExisting: 'TRUE'

Outputs:
SftpToS3WorkflowId:
Description: 'Id of the Workflow'
Value: !GetAtt SftpToS3Workflow.WorkflowId
Export:
Name: SftpToS3WorkflowId

不幸的是,该脚本失败并出现以下错误。该错误没有说明哪个属性未通过验证。有人可以帮忙吗?我在 GitHub 上找不到哪怕一个示例。

Properties validation failed for resource SftpToS3Workflow with message: #/Description: failed validation constraint for keyword [pattern]

我使用此 CloudFormation 架构来编写代码:

https://github.com/APIs-guru/openapi-directory/blob/0380216a44c364b4517b31a93295089a6f4f23b9/APIs/amazonaws.com/transfer/2018-11-05/openapi.yaml

最佳答案

Description只能是

^[\w- ]*$

所以应该是:

Description: 'Workflow used by AWS File Transfer Family - Copies the files to S3'

关于amazon-web-services - Cloudformation 失败并显示 'failed validation constraint for keyword [pattern]',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71029860/

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