我想使用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"
}
]
},
Run Code Online (Sandbox Code Playgroud)
但我不断收到诸如
[错误] / Resources / NOTDScheduler / Properties / Targets / 0 / statemachineARN / Fn :: GetAtt:资源类型AWS :: StepFunctions :: StateMachine不支持属性{Arn}。
而且不知道Arn如何不支持的属性。有解决方法吗?
amazon-web-services aws-cloudformation amazon-cloudwatch aws-step-functions