【发布时间】:2017-11-15 11:17:16
【问题描述】:
我想使用 CloudFormation 按计划(30 分钟)使用 Step Functions 将一堆预先存在的 Lambda 函数创建到状态机中。我已经成功地为我的其他方法创建了堆栈。
本质上,我需要有关如何在 CloudFormation 为 Step Functions 中创建计划事件的帮助或指导。这是我一直在尝试的:
"NOTDScheduler": {
"Type": "AWS::Events::Rule",
"Properties": {
"Description": "Schedules a NOTD every 30 minutes",
"ScheduleExpression": "rate(30 minutes)",
"State": "ENABLED",
"Targets": [
{
"Arn": "${statemachineARN}",
"statemachineARN": {
"Fn::GetAtt": [
"NOTDStateMachine",
"Arn"
]
},
"Id": "NOTDScheduleTarget"
}
]
},
但我不断收到诸如
之类的错误[错误] /Resources/NOTDScheduler/Properties/Targets/0/statemachineARN/Fn::GetAtt:资源类型 AWS::StepFunctions::StateMachine 不支持属性 {Arn}。
并且不知道 Arn 如何不是受支持的属性。有解决办法吗?
【问题讨论】:
标签: amazon-web-services amazon-cloudformation amazon-cloudwatch aws-step-functions