我正在使用 cloudformation 脚本来创建 AWS Data Pipeline。我已经根据文档创建了脚本,但我面临 1 个错误,即
模板验证错误:模板格式错误:模板的 Resources 块中未解决的资源依赖项 [DefaultSchedule]
这是我的脚本的资源部分:
Resources:
DataPipelineForS3Backup:
Type: AWS::DataPipeline::Pipeline
Properties:
Name:
Ref: S3BackupDataPipeline
Description:
Ref: S3BackupDataPipeline
Activate: 'true'
ParameterObjects:
- Id: myAwsCliCommand
Attributes:
- Key: description
StringValue: Dp command to run
- Key: type
StringValue: String
ParameterValues:
- Id: myAwsCliCommand
StringValue:
Ref: AwsCliCommand
PipelineObjects:
- Id: DefaultSchedule
Name: Every 1 day
Fields:
- Key: type
StringValue: Schedule
- Key: period
StringValue: 1 Day
- Key: startDateTime
StringValue: 2018-08-08T19:00:00
- Id: Default
Name: Default
Fields:
- Key: failureAndRerunMode
StringValue: CASCADE
- Key: type
StringValue: Default
- Key: resourceRole
StringValue:
Ref: S3BackupResourceRole
- Key: pipelineLogUri
StringValue:
Ref: S3BackupDpLogUri
- Key: role
StringValue:
Ref: S3BackupDpRole
- Key: scheduleType
StringValue: cron
- Key: schedule
StringValue:
Ref: DefaultSchedule
谁能告诉我剧本是怎么回事?谢谢