Cloudformation 失败 'failed validation constraint for keyword [pattern]'
Cloudformation fails with 'failed validation constraint for keyword [pattern]'
我正在尝试使用 AWS CloudFormation 创建工作流对象。此工作流将与 AWS 文件传输系列一起使用,以便文件在上传时被复制到 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 架构编写代码:
Description只能是
^[\w- ]*$
所以应该是:
Description: 'Workflow used by AWS File Transfer Family - Copies the files to S3'
我正在尝试使用 AWS CloudFormation 创建工作流对象。此工作流将与 AWS 文件传输系列一起使用,以便文件在上传时被复制到 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 架构编写代码:
Description只能是
^[\w- ]*$
所以应该是:
Description: 'Workflow used by AWS File Transfer Family - Copies the files to S3'